From: Kevin P. Fleming Date: Mon, 17 Oct 2005 13:53:50 +0000 (+0000) Subject: correct behavior change introduced by issue #5448 patch X-Git-Tag: 1.2.0-beta2~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a59bc42c844677a3efb3f0055d7c0ad99c01607;p=thirdparty%2Fasterisk.git correct behavior change introduced by issue #5448 patch git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6805 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/config.c b/config.c index 846802e80c..bee08cc898 100755 --- a/config.c +++ b/config.c @@ -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;