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:
parent
056bae58f4
commit
4d438a3805
|
@ -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;
|
||||
|
|
Reference in New Issue