Skip to content
Snippets Groups Projects
Commit 7a59bc42 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

correct behavior change introduced by issue #5448 patch

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 43fd4d64
No related branches found
No related tags found
No related merge requests found
......@@ -150,15 +150,10 @@ char *ast_variable_retrieve(const struct ast_config *config, const char *categor
struct ast_variable *v;
if (category) {
char *val = NULL;
for (v = ast_variable_browse(config, category); v; v = v->next) {
if (variable == v->name)
return v->value;
if (!strcasecmp(variable, v->name))
val = v->value;
return v->value;
}
if (val)
return val;
} else {
struct ast_category *cat;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment