]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
clear the category's variable tail pointer as well when variables are detached from it
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 15 Nov 2006 19:42:05 +0000 (19:42 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 15 Nov 2006 19:42:05 +0000 (19:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47686 65c4cc65-6c06-0410-ace0-fbb531ad65f3

config.c

index 616bb657edc720729ff718b83f8bbbcd6218fc92..4b3c79bf12cfaeaccb1fd3dcb5e61eac9361eaf2 100644 (file)
--- a/config.c
+++ b/config.c
@@ -301,6 +301,7 @@ struct ast_variable *ast_category_detach_variables(struct ast_category *cat)
 
        v = cat->root;
        cat->root = NULL;
+       cat->last = NULL;
 
        return v;
 }