mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user