mod_fifo: Refactor

This commit is contained in:
Travis Cross 2014-05-25 15:57:39 +00:00
parent 0526e00457
commit 1f7589d6fa
1 changed files with 1 additions and 3 deletions

View File

@ -4481,9 +4481,7 @@ static switch_status_t load_config(int reload, int del_all)
int ring_timeout = 60;
int default_lag = 30;
name = switch_xml_attr(fifo, "name");
if (!name) {
if (!(name = switch_xml_attr(fifo, "name"))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "fifo has no name!\n");
continue;
}