[asterisk-commits] markster: trunk r37953 - /trunk/config.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jul 19 10:26:47 MST 2006


Author: markster
Date: Wed Jul 19 12:26:47 2006
New Revision: 37953

URL: http://svn.digium.com/view/asterisk?rev=37953&view=rev
Log:
Fix some reinitialization of prev!

Modified:
    trunk/config.c

Modified: trunk/config.c
URL: http://svn.digium.com/view/asterisk/trunk/config.c?rev=37953&r1=37952&r2=37953&view=diff
==============================================================================
--- trunk/config.c (original)
+++ trunk/config.c Wed Jul 19 12:26:47 2006
@@ -346,6 +346,7 @@
 		cur = cur->next;
 	}
 
+	prev = NULL;
 	cur = category->root;
 	while (cur) {
 		if (!strcasecmp(cur->name, variable)) {
@@ -392,6 +393,7 @@
 		cur = cur->next;
 	}
 
+	prev = NULL;
 	cur = category->root;
 	while (cur) {
 		if (!strcasecmp(cur->name, variable)) {
@@ -438,6 +440,8 @@
 		prev = cat;
 		cat = cat->next;
 	}
+
+	prev = NULL;
 	cat = cfg->root;
 	while(cat) {
 		if (!strcasecmp(cat->name, category)) {



More information about the asterisk-commits mailing list