From: Michael Jerris Date: Fri, 16 May 2014 18:49:23 +0000 (+0000) Subject: CID:1023975 Unused pointer value X-Git-Tag: v1.4.4~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54fc2f5e3958ac6fa7937e98fbc30ec955e6d0ac;p=thirdparty%2Ffreeswitch.git CID:1023975 Unused pointer value --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 3a87206957..786115d115 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -1076,7 +1076,7 @@ SWITCH_STANDARD_API(group_call_function) SWITCH_STANDARD_API(in_group_function) { - switch_xml_t x_domain, xml = NULL, x_user = NULL, x_group; + switch_xml_t x_domain, xml = NULL, x_group; int argc; char *mydata = NULL, *argv[2], *user, *domain, *dup_domain = NULL; char delim = ','; @@ -1110,7 +1110,7 @@ SWITCH_STANDARD_API(in_group_function) if (switch_xml_locate_group(group, domain, &xml, &x_domain, &x_group, params) == SWITCH_STATUS_SUCCESS) { switch_xml_t x_users; if ((x_users = switch_xml_child(x_group, "users"))) { - if ((x_user = switch_xml_find_child(x_users, "user", "id", user))) { + if (switch_xml_find_child(x_users, "user", "id", user)) { rval = "true"; } }