[asterisk-commits] tilghman: trunk r90591 - /trunk/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 3 14:30:02 CST 2007


Author: tilghman
Date: Mon Dec  3 14:30:02 2007
New Revision: 90591

URL: http://svn.digium.com/view/asterisk?view=rev&rev=90591
Log:
Avoid an additional function call.  Reported by: eliel Patch by: eliel (Closes issue #11438)

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=90591&r1=90590&r2=90591
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Mon Dec  3 14:30:02 2007
@@ -3464,7 +3464,7 @@
 			}
 			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));




More information about the asterisk-commits mailing list