[svn-commits] twilson: branch twilson/calendaring r185686 - /team/twilson/calendaring/main/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 31 18:22:21 CDT 2009


Author: twilson
Date: Tue Mar 31 18:22:16 2009
New Revision: 185686

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=185686
Log:
Don't load res_ modules if calendar support is dsabled.

Modified:
    team/twilson/calendaring/main/calendar.c

Modified: team/twilson/calendaring/main/calendar.c
URL: http://svn.digium.com/svn-view/asterisk/team/twilson/calendaring/main/calendar.c?view=diff&rev=185686&r1=185685&r2=185686
==============================================================================
--- team/twilson/calendaring/main/calendar.c (original)
+++ team/twilson/calendaring/main/calendar.c Tue Mar 31 18:22:16 2009
@@ -379,6 +379,11 @@
 	const char *cat = NULL;
 	const char *val;
 
+	if (!calendar_config) {
+		ast_log(LOG_WARNING, "Calendar support disabled, not loading %s calendar module\n", tech->type);
+		return -1;
+	}
+
 	while ((cat = ast_category_browse(calendar_config, cat))) {
 		if (!strcasecmp(cat, "general")) {
 			continue;




More information about the svn-commits mailing list