From 6da59b6307f01f54a8b9a5137cb4793aab4f47be Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 29 Nov 2007 03:00:18 +0000 Subject: [PATCH] uninitialized var. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6431 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_commands/mod_commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 822af3ebae..342eb88532 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -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, "?>"))) {