summaryrefslogtreecommitdiffstats
path: root/m_property.c
diff options
context:
space:
mode:
authorulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-22 03:45:14 +0000
committerulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-22 03:45:14 +0000
commitd2cef4c24019ae7724c1bd0eff6d4e30f63b22a1 (patch)
tree5d6f6e3368f8beeae2e42d02f97fe13ba9a69e1d /m_property.c
parentbfef84e32fae93b1e4a0d00020def972f8f964a7 (diff)
downloadmpv-d2cef4c24019ae7724c1bd0eff6d4e30f63b22a1.tar.bz2
mpv-d2cef4c24019ae7724c1bd0eff6d4e30f63b22a1.tar.xz
Move two variable to the scope where they are indeed used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25488 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'm_property.c')
-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)