]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7689 #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Jun 2015 18:22:59 +0000 (13:22 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Jun 2015 18:23:23 +0000 (13:23 -0500)
src/mod/languages/mod_lua/mod_lua.cpp

index be68a43eb4bf10d48f5f1bf78b873931174a1d32..bb835b09e015fb7b56fdf38123b994d7a5bfb8d0 100644 (file)
@@ -272,7 +272,7 @@ static switch_xml_t lua_fetch(const char *section,
                }
 
                lua_getglobal(L, "XML_STRING");
-               str = lua_tostring(L, 1);
+               str = lua_tostring(L, -1);
                
                if (str) {
                        if (zstr(str)) {