diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-10-17 13:53:50 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-10-17 13:53:50 +0000 |
commit | 7a59bc42c844677a3efb3f0055d7c0ad99c01607 (patch) | |
tree | fb78cadc7127eec181ee670d3717d83a8fb86e33 | |
parent | 43fd4d64b0bdc79e49937903efa371a89146cebb (diff) |
correct behavior change introduced by issue #5448 patch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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; |