projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43fd4d6
)
correct behavior change introduced by issue #5448 patch
author
Kevin P. Fleming
<kpfleming@digium.com>
Mon, 17 Oct 2005 13:53:50 +0000
(13:53 +0000)
committer
Kevin P. Fleming
<kpfleming@digium.com>
Mon, 17 Oct 2005 13:53:50 +0000
(13:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6805
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
config.c
patch
|
blob
|
history
diff --git
a/config.c
b/config.c
index
846802e
..
bee08cc
100755
(executable)
--- 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;