diff options
author | Mark Spencer <markster@digium.com> | 2005-01-15 06:37:51 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-01-15 06:37:51 +0000 |
commit | 122b11ec211c76c2095edec8260b20689b1f63d0 (patch) | |
tree | 0887e771a85769ef6fa72b13e181748739f6ae88 /channel.c | |
parent | 99e2b961c2623c5e84365806874878730952f1ad (diff) |
Handle masq properly when clone channel has no vars (bug 3344)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4796 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2317,7 +2317,8 @@ static void clone_variables(struct ast_channel *original, struct ast_channel *cl /* Append variables from clone channel into original channel */ /* XXX Is this always correct? We have to in order to keep MACROS working XXX */ - AST_LIST_INSERT_TAIL(&original->varshead, AST_LIST_FIRST(&clone->varshead), entries); + if (AST_LIST_FIRST(&clone->varshead)) + AST_LIST_INSERT_TAIL(&original->varshead, AST_LIST_FIRST(&clone->varshead), entries); } /* Assumes channel will be locked when called */ |