[Freeswitch-trunk] [commit] r6431 - freeswitch/trunk/src/mod/applications/mod_commands
Freeswitch SVN
mikej at freeswitch.org
Wed Nov 28 22:00:18 EST 2007
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, "?>"))) {
More information about the Freeswitch-trunk
mailing list