[asterisk-commits] murf: branch 1.4 r43508 - /branches/1.4/pbx/pbx_ael.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Sep 22 14:36:11 MST 2006


Author: murf
Date: Fri Sep 22 16:36:10 2006
New Revision: 43508

URL: http://svn.digium.com/view/asterisk?rev=43508&view=rev
Log:
This commits a change to return MODULE_LOAD_FAILURE on error, and SUCCESS (instead of 0) when all goes well for bug 8004

Modified:
    branches/1.4/pbx/pbx_ael.c

Modified: branches/1.4/pbx/pbx_ael.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/pbx/pbx_ael.c?rev=43508&r1=43507&r2=43508&view=diff
==============================================================================
--- branches/1.4/pbx/pbx_ael.c (original)
+++ branches/1.4/pbx/pbx_ael.c Fri Sep 22 16:36:10 2006
@@ -3825,10 +3825,12 @@
 		ast_log(LOG_NOTICE, "AEL load process: verified config file name '%s'.\n", rfilename);
 	} else {
 		ast_log(LOG_ERROR, "Sorry, but %d syntax errors and %d semantic errors were detected. It doesn't make sense to compile.\n", errs, sem_err);
+		destroy_pval(parse_tree); /* free up the memory */
+		return AST_MODULE_LOAD_FAILURE;
 	}
 	destroy_pval(parse_tree); /* free up the memory */
 	
-	return 0;
+	return AST_MODULE_LOAD_SUCCESS;
 }
 
 /* CLI interface */



More information about the asterisk-commits mailing list