diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-28 19:02:31 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-28 19:02:31 +0000 |
commit | d4c61d0bad6f73461d471799d9037f7f00792c27 (patch) | |
tree | 0a3441592e35bc2aff5768a2653af311fb770258 /res | |
parent | 86416cfc9164e054dbac60f8eec443ed9a6dba8d (diff) |
move variable declarations to the beginning of a block.
Not applicable to previous branches.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72457 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_features.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c index 228908dba..629fea3fb 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -2838,7 +2838,6 @@ static int load_config(void) AST_RWLIST_WRLOCK(&feature_groups); ctg = NULL; - struct ast_call_feature *feature; while ((ctg = ast_category_browse(cfg, ctg))) { for (i = 0; i < ARRAY_LEN(categories); i++) { if (!strcasecmp(categories[i], ctg)) @@ -2852,6 +2851,8 @@ static int load_config(void) continue; for (var = ast_variable_browse(cfg, ctg); var; var = var->next) { + struct ast_call_feature *feature; + AST_LIST_LOCK(&feature_list); if(!(feature = find_dynamic_feature(var->name)) && !(feature = ast_find_call_feature(var->name))) { |