aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-07 03:09:16 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-07 03:09:16 +0000
commit1825dfee1089a4438b3ec86f3c13a4ef4ed59530 (patch)
treef5ef6db2e6130ed780612a3d0897972113744c8b /pbx
parent8f78b27c8a2f390287191e25fda25f6f19fffa27 (diff)
correct logic error noticed by rmudgett (thanks!)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@155206 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index 42cae6021..4422557be 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -1446,7 +1446,9 @@ static int pbx_load_config(const char *config_file)
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;