mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
Avoid an additional function call. Reported by: eliel Patch by: eliel (Closes issue #11438)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3464,7 +3464,7 @@ void ast_channel_inherit_variables(const struct ast_channel *parent, struct ast_
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
newvar = ast_var_assign(ast_var_full_name(current), ast_var_value(current));
|
newvar = ast_var_assign(varname, ast_var_value(current));
|
||||||
if (newvar) {
|
if (newvar) {
|
||||||
AST_LIST_INSERT_TAIL(&child->varshead, newvar, entries);
|
AST_LIST_INSERT_TAIL(&child->varshead, newvar, entries);
|
||||||
ast_debug(1, "Copying hard-transferable variable %s.\n", ast_var_name(newvar));
|
ast_debug(1, "Copying hard-transferable variable %s.\n", ast_var_name(newvar));
|
||||||
|
Reference in New Issue
Block a user