diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-15 19:47:43 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-15 19:47:43 +0000 |
commit | 22458793c5c1ee0eefeb1628ae5ab6d67a330d56 (patch) | |
tree | f7ffc7f72b7bd8b1aeed84b041d1160548fcdb3d /config.c | |
parent | eb8cdb4741ab9f4e076519c58eb34352c4aa6d25 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |