mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
formatting changes :: one line for loops and if statements should have {}
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@158070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -420,10 +420,13 @@ const char *ast_variable_retrieve(const struct ast_config *config, const char *c
|
|||||||
} else {
|
} else {
|
||||||
struct ast_category *cat;
|
struct ast_category *cat;
|
||||||
|
|
||||||
for (cat = config->root; cat; cat = cat->next)
|
for (cat = config->root; cat; cat = cat->next) {
|
||||||
for (v = cat->root; v; v = v->next)
|
for (v = cat->root; v; v = v->next) {
|
||||||
if (!strcasecmp(variable, v->name))
|
if (!strcasecmp(variable, v->name)) {
|
||||||
return v->value;
|
return v->value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user