diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index a8fcd88c41..6d9f8da59d 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -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; }