diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-11-07 03:09:16 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-11-07 03:09:16 +0000 |
commit | 210df649a2efaed02f294af96ffe3072398ed3d6 (patch) | |
tree | f5ef6db2e6130ed780612a3d0897972113744c8b /pbx/pbx_config.c | |
parent | 9cc7bc998bae9c53be1bff8e782fc25e3b67f621 (diff) |
correct logic error noticed by rmudgett (thanks!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@155206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_config.c')
-rw-r--r-- | pbx/pbx_config.c | 4 |
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; |