diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-17 13:53:50 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-17 13:53:50 +0000 |
commit | c28828ebddf2d472ed379a164fd9e244fcb97e69 (patch) | |
tree | fb78cadc7127eec181ee670d3717d83a8fb86e33 /config.c | |
parent | 54ffc347bcc94f9c612f3e71b6ba477294dcc224 (diff) |
correct behavior change introduced by issue #5448 patch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6805 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rwxr-xr-x | config.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; |