[Asterisk-cvs] asterisk channel.c,1.238,1.239

kpfleming kpfleming
Thu Sep 1 17:49:50 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv6271

Modified Files:
	channel.c 
Log Message:
don't reverse variable order during inheritance (issue #5091)


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.238
retrieving revision 1.239
diff -u -d -r1.238 -r1.239
--- channel.c	1 Sep 2005 00:10:49 -0000	1.238
+++ channel.c	1 Sep 2005 21:50:49 -0000	1.239
@@ -2470,7 +2470,7 @@
 		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 @@
 		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));
 			}




More information about the svn-commits mailing list