From: Kevin P. Fleming Date: Wed, 15 Nov 2006 19:42:05 +0000 (+0000) Subject: clear the category's variable tail pointer as well when variables are detached from it X-Git-Tag: 1.2.14~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c3789a5fdf100b04bb41b77e0ccaccc199d3fbf;p=thirdparty%2Fasterisk.git clear the category's variable tail pointer as well when variables are detached from it git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47686 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/config.c b/config.c index 616bb657ed..4b3c79bf12 100644 --- 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; }