From 9c3789a5fdf100b04bb41b77e0ccaccc199d3fbf Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Wed, 15 Nov 2006 19:42:05 +0000 Subject: [PATCH] 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 --- config.c | 1 + 1 file changed, 1 insertion(+) 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; }