mod_fifo: Consolidate code

This commit is contained in:
Travis Cross 2014-05-24 23:03:07 +00:00
parent 8ccd13bd9a
commit 84d6b2e351
1 changed files with 2 additions and 5 deletions

View 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);