summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--m_property.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/m_property.c b/m_property.c
index 52a10ffe35..2b9b04d4d7 100644
--- a/m_property.c
+++ b/m_property.c
@@ -144,10 +144,10 @@ char* m_properties_expand_string(m_option_t* prop_list,char* str, void *ctx) {
l = 0;
str = e+1;
} else if(str[0] == '?' && str[1] == '(' && (e = strchr(str+2,':'))) {
- int pl = e-str-2;
- char pname[pl+1];
lvl++;
if(!skip) {
+ int pl = e-str-2;
+ char pname[pl+1];
memcpy(pname,str+2,pl);
pname[pl] = 0;
if(m_property_do(prop_list,pname,M_PROPERTY_GET,NULL,ctx) < 0)