aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-15 19:47:43 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-15 19:47:43 +0000
commit22458793c5c1ee0eefeb1628ae5ab6d67a330d56 (patch)
treef7ffc7f72b7bd8b1aeed84b041d1160548fcdb3d /config.c
parenteb8cdb4741ab9f4e076519c58eb34352c4aa6d25 (diff)
when appending a list of variable to a category, ensure the tail pointer points to the last variable in the list
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@47688 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index 4b3c79bf1..255a7c37b 100644
--- a/config.c
+++ b/config.c
@@ -120,6 +120,8 @@ void ast_variable_append(struct ast_category *category, struct ast_variable *var
else
category->root = variable;
category->last = variable;
+ while (category->last->next)
+ category->last = category->last->next;
}
void ast_variables_destroy(struct ast_variable *v)