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:
Michael Jerris 2007-05-09 15:49:01 +00:00
parent a4e031c021
commit 41163d1020
1 changed files with 1 additions and 1 deletions

View File

@ -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");