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:
parent
601f6bcba7
commit
bec40ce4dc
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue