mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-01 20:43:15 -07:00
Fix an asterisk crash if no asterisk.conf configuration file is present.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@155175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6548,6 +6548,7 @@ int ast_load_documentation(void)
|
||||
|
||||
if (!(cfg = ast_config_load2("asterisk.conf", "" /* core can't reload */, cnfflags))) {
|
||||
ast_log(LOG_ERROR, "No asterisk.conf? That cannot be good.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (var = ast_variable_browse(cfg, "options"); var; var = var->next) {
|
||||
|
||||
Reference in New Issue
Block a user