forked from Mirrors/freeswitch
uninitialized var.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6431 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d79d8ba65c
commit
6da59b6307
|
@ -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, "?>"))) {
|
||||
|
|
Loading…
Reference in New Issue