diff m_property.c @ 25460:3086b6d39052

Move two variable to the scope where they are indeed used.
author ulion
date Sat, 22 Dec 2007 03:45:14 +0000
parents ae4237717601
children 26a839637972
line wrap: on
line diff
--- a/m_property.c	Fri Dec 21 11:56:18 2007 +0000
+++ b/m_property.c	Sat Dec 22 03:45:14 2007 +0000
@@ -144,10 +144,10 @@
                 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)