[Freeswitch-svn] [commit] r6431 - freeswitch/trunk/src/mod/applications/mod_commands
Author: mikej Date: Wed Nov 28 22:00:18 2007 New Revision: 6431 Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c Log: uninitialized var. Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c (original) +++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c Wed Nov 28 22:00:18 2007 @@ -43,7 +43,7 @@ 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 @@ end: - if (xml) { + if (xml && x_user) { xmlstr = switch_xml_toxml(x_user); assert(xmlstr); if ((xs = strstr(xmlstr, "?>"))) {
participants (1)
-
Freeswitch SVN