diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-03 20:30:02 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-03 20:30:02 +0000 |
commit | eea6a9bbe8a945afdfd61bbc048486f01250adbd (patch) | |
tree | e4976a42aa48871b2099450bc744c5e027b788ef /main/channel.c | |
parent | 0e8545b0dc23b50a992acbd57f8160c0241789b4 (diff) |
Avoid an additional function call. Reported by: eliel Patch by: eliel (Closes issue #11438)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90591 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index f0ee9e7d4..a9b0d3151 100644 --- a/main/channel.c +++ b/main/channel.c @@ -3464,7 +3464,7 @@ void ast_channel_inherit_variables(const struct ast_channel *parent, struct ast_ } break; 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) { AST_LIST_INSERT_TAIL(&child->varshead, newvar, entries); ast_debug(1, "Copying hard-transferable variable %s.\n", ast_var_name(newvar)); |