]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
uninitialized var.
authorMichael Jerris <mike@jerris.com>
Thu, 29 Nov 2007 03:00:18 +0000 (03:00 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 29 Nov 2007 03:00:18 +0000 (03:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6431 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_commands/mod_commands.c

index 822af3ebaec39bca8489cc9db952e4894dfe133d..342eb88532da7c53caefaac26c45d38f20df012d 100644 (file)
@@ -43,7 +43,7 @@ SWITCH_MODULE_DEFINITION(mod_commands, mod_commands_load, NULL, NULL);
 
 SWITCH_STANDARD_API(find_user_function)
 {
-       switch_xml_t x_domain, x_user, xml = NULL;
+       switch_xml_t x_domain = NULL, x_user = NULL, xml = NULL;
        int argc;
     char *mydata = NULL, *argv[3];
        char *key, *user, *domain;
@@ -81,7 +81,7 @@ SWITCH_STANDARD_API(find_user_function)
 
  end:
 
-       if (xml) {
+       if (xml && x_user) {
                xmlstr = switch_xml_toxml(x_user);
                assert(xmlstr);
                if ((xs = strstr(xmlstr, "?>"))) {