avoid a segfault if you dont have an xml_cdr config

This commit is contained in:
Ken Rice 2013-09-05 19:02:27 -05:00
parent af85dcc5c0
commit 432fb076d8
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_cdr_load)
/* parse the config */
if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
return SWITCH_STATUS_TERM;
return SWITCH_STATUS_FALSE;
}
if ((settings = switch_xml_child(cfg, "settings"))) {