[svn-commits] eliel: trunk r155175 - /trunk/main/pbx.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Nov 6 20:37:48 CST 2008


Author: eliel
Date: Thu Nov  6 20:37:47 2008
New Revision: 155175

URL: http://svn.digium.com/view/asterisk?view=rev&rev=155175
Log:
Fix an asterisk crash if no asterisk.conf configuration file is present.

Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=155175&r1=155174&r2=155175
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Thu Nov  6 20:37:47 2008
@@ -6548,6 +6548,7 @@
 
 	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) {




More information about the svn-commits mailing list