]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_fifo: Consolidate code
authorTravis Cross <tc@traviscross.com>
Sat, 24 May 2014 23:03:07 +0000 (23:03 +0000)
committerTravis Cross <tc@traviscross.com>
Wed, 28 May 2014 01:31:58 +0000 (01:31 +0000)
src/mod/applications/mod_fifo/mod_fifo.c

index c557b3ab978205419b314626db7c6267a3428194..70a49dedb724fa89ddd8838c5aef6b683561b016 100644 (file)
@@ -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);