aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-01 21:50:49 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-01 21:50:49 +0000
commit5424402fc131931b65cd214aaa24dd91642cd123 (patch)
tree373d11dc828ae1ad37b8f489fc36cc5448795510 /channel.c
parent3acba203b200c2569c2abe17cab175c6625f8f1c (diff)
don't reverse variable order during inheritance (issue #5091)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6489 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index 56f889b44..7e63bbb2a 100755
--- a/channel.c
+++ b/channel.c
@@ -2470,7 +2470,7 @@ void ast_channel_inherit_variables(const struct ast_channel *parent, struct ast_
case 1:
newvar = ast_var_assign(&varname[1], ast_var_value(current));
if (newvar) {
- AST_LIST_INSERT_HEAD(&child->varshead, newvar, entries);
+ AST_LIST_INSERT_TAIL(&child->varshead, newvar, entries);
if (option_debug)
ast_log(LOG_DEBUG, "Copying soft-transferable variable %s.\n", ast_var_name(newvar));
}
@@ -2478,7 +2478,7 @@ void ast_channel_inherit_variables(const struct ast_channel *parent, struct ast_
case 2:
newvar = ast_var_assign(ast_var_full_name(current), ast_var_value(current));
if (newvar) {
- AST_LIST_INSERT_HEAD(&child->varshead, newvar, entries);
+ AST_LIST_INSERT_TAIL(&child->varshead, newvar, entries);
if (option_debug)
ast_log(LOG_DEBUG, "Copying hard-transferable variable %s.\n", ast_var_name(newvar));
}