[Asterisk-cvs] asterisk config.c,1.77,1.78

kpfleming kpfleming
Mon Oct 17 09:59:49 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv30383

Modified Files:
	config.c 
Log Message:
correct behavior change introduced by issue #5448 patch


Index: config.c
===================================================================
RCS file: /usr/cvsroot/asterisk/config.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- config.c	17 Oct 2005 03:53:27 -0000	1.77
+++ config.c	17 Oct 2005 13:53:50 -0000	1.78
@@ -150,15 +150,10 @@
 	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;
 




More information about the svn-commits mailing list