make sure to initialize gateway->next
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5112 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a4e031c021
commit
41163d1020
|
@ -489,7 +489,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
|
|||
gateway->profile = profile;
|
||||
gateway->name = switch_core_strdup(gateway->pool, name);
|
||||
gateway->freq = 0;
|
||||
|
||||
gateway->next = NULL;
|
||||
|
||||
for (param = switch_xml_child(gateway_tag, "param"); param; param = param->next) {
|
||||
char *var = (char *) switch_xml_attr_soft(param, "name");
|
||||
|
|
Loading…
Reference in New Issue