dect
/
asterisk
Archived
13
0
Fork 0

formatting changes :: one line for loops and if statements should have {}

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158070 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
rbrindley 2008-11-20 17:46:56 +00:00
parent 056bae58f4
commit 4d438a3805
1 changed files with 6 additions and 3 deletions

View 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;