when appending a list of variable to a category, ensure the tail pointer points to the last variable in the list

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2006-11-15 19:47:43 +00:00
parent 9c3789a5fd
commit 2d94af17a7
+2
View File
@@ -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)