Archived
14
0
Fork 0

Fix an asterisk crash if no asterisk.conf configuration file is present.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@155175 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
eliel 2008-11-07 02:37:47 +00:00
parent 601f6bcba7
commit bec40ce4dc

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