appending one list to another should leave the first list empty, and not require the user to do that

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2007-10-25 23:03:11 +00:00
parent 5ee24bef92
commit 214a5ca25e
2 changed files with 5 additions and 1 deletions

View File

@@ -3579,7 +3579,6 @@ static void clone_variables(struct ast_channel *original, struct ast_channel *cl
/* XXX Is this always correct? We have to in order to keep MACROS working XXX */
if (AST_LIST_FIRST(&clone->varshead))
AST_LIST_APPEND_LIST(&original->varshead, &clone->varshead, entries);
AST_LIST_HEAD_INIT_NOLOCK(&clone->varshead);
/* then, dup the varshead list into the clone */