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:
Eliel C. Sardanons 2008-11-07 02:37:47 +00:00
parent c054d798b8
commit 65d4d1eb0f
1 changed files with 1 additions and 0 deletions

View File

@ -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) {