[asterisk-commits] kpfleming: trunk r155206 - /trunk/pbx/pbx_config.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 6 21:09:16 CST 2008


Author: kpfleming
Date: Thu Nov  6 21:09:16 2008
New Revision: 155206

URL: http://svn.digium.com/view/asterisk?view=rev&rev=155206
Log:
correct logic error noticed by rmudgett (thanks!)

Modified:
    trunk/pbx/pbx_config.c

Modified: trunk/pbx/pbx_config.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_config.c?view=diff&rev=155206&r1=155205&r2=155206
==============================================================================
--- trunk/pbx/pbx_config.c (original)
+++ trunk/pbx/pbx_config.c Thu Nov  6 21:09:16 2008
@@ -1446,7 +1446,9 @@
 		pbx_substitute_variables_helper(NULL, v->value, realvalue, sizeof(realvalue) - 1);
 		pbx_builtin_setvar_helper(NULL, v->name, realvalue);
 	}
-	for (cxt = NULL; cxt; cxt = ast_category_browse(cfg, cxt)) {
+	for (cxt = ast_category_browse(cfg, NULL);
+	     cxt;
+	     cxt = ast_category_browse(cfg, cxt)) {
 		/* All categories but "general" or "globals" are considered contexts */
 		if (!strcasecmp(cxt, "general") || !strcasecmp(cxt, "globals")) {
 			continue;




More information about the asterisk-commits mailing list