]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
formatting changes :: one line for loops and if statements should have {}
authorRyan Brindley <rbrindley@digium.com>
Thu, 20 Nov 2008 17:46:56 +0000 (17:46 +0000)
committerRyan Brindley <rbrindley@digium.com>
Thu, 20 Nov 2008 17:46:56 +0000 (17:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@158070 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index f5fa9cd91c72eb1d1debc02f16325798b33e2696..3aab0f8a5dc963912c5a909cdc43ba0b5ab5a877 100644 (file)
@@ -420,10 +420,13 @@ const char *ast_variable_retrieve(const struct ast_config *config, const char *c
        } else {
                struct ast_category *cat;
 
-               for (cat = config->root; cat; cat = cat->next)
-                       for (v = cat->root; v; v = v->next)
-                               if (!strcasecmp(variable, v->name))
+               for (cat = config->root; cat; cat = cat->next) {
+                       for (v = cat->root; v; v = v->next) {
+                               if (!strcasecmp(variable, v->name)) {
                                        return v->value;
+                               }
+                       }
+               }
        }
 
        return NULL;