aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-19 17:26:47 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-19 17:26:47 +0000
commit78b6c335eef65b88c95be45b4e0574033409a289 (patch)
treec4a28492d4fee81128edb3cd004adad4205b2081 /config.c
parent4bf77fda2faca820503e7a8a7b3121c73351b965 (diff)
Fix some reinitialization of prev!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37953 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.c b/config.c
index 093af40f9..2cf5385bf 100644
--- a/config.c
+++ b/config.c
@@ -346,6 +346,7 @@ int ast_variable_delete(struct ast_category *category, char *variable)
cur = cur->next;
}
+ prev = NULL;
cur = category->root;
while (cur) {
if (!strcasecmp(cur->name, variable)) {
@@ -392,6 +393,7 @@ int ast_variable_update(struct ast_category *category, char *variable, char *val
cur = cur->next;
}
+ prev = NULL;
cur = category->root;
while (cur) {
if (!strcasecmp(cur->name, variable)) {
@@ -438,6 +440,8 @@ int ast_category_delete(struct ast_config *cfg, char *category)
prev = cat;
cat = cat->next;
}
+
+ prev = NULL;
cat = cfg->root;
while(cat) {
if (!strcasecmp(cat->name, category)) {