]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
when appending a list of variable to a category, ensure the tail pointer points to...
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 15 Nov 2006 19:47:43 +0000 (19:47 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 15 Nov 2006 19:47:43 +0000 (19:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47688 65c4cc65-6c06-0410-ace0-fbb531ad65f3

config.c

index 4b3c79bf12cfaeaccb1fd3dcb5e61eac9361eaf2..255a7c37bbf27942aa61ed5fc456c68c5e54968f 100644 (file)
--- 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)