From: Travis Cross Date: Sat, 24 May 2014 23:03:07 +0000 (+0000) Subject: mod_fifo: Consolidate code X-Git-Tag: v1.4.5~2^2~14^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84d6b2e35144673b5042b44ca933f1b144208a2f;p=thirdparty%2Ffreeswitch.git mod_fifo: Consolidate code --- diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index c557b3ab97..70a49dedb7 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -4373,11 +4373,8 @@ static switch_status_t load_config(int reload, int del_all) if ((settings = switch_xml_child(cfg, "settings"))) { for (param = switch_xml_child(settings, "param"); param; param = param->next) { - char *var = NULL; - char *val = NULL; - - var = (char *) switch_xml_attr_soft(param, "name"); - val = (char *) switch_xml_attr_soft(param, "value"); + char *var = (char*)switch_xml_attr_soft(param, "name"); + char *val = (char*)switch_xml_attr_soft(param, "value"); if (!strcasecmp(var, "outbound-strategy") && !zstr(val)) { default_strategy = parse_strat(val);