[Asterisk-cvs] asterisk pbx.c,1.120,1.121

citats at lists.digium.com citats at lists.digium.com
Mon May 17 17:03:39 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk

Modified Files:
	pbx.c 
Log Message:
Fix compiler warning


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- pbx.c	17 May 2004 21:10:26 -0000	1.120
+++ pbx.c	17 May 2004 21:15:37 -0000	1.121
@@ -4074,9 +4074,9 @@
 			strncpy(as->appdata,  appdata, sizeof(as->appdata) - 1);
 		as->timeout = timeout;
 		if (variable) {
-			tmp = ast_strdupa(variable);
-				for (var = strtok_r(tmp, "|", &tmp); var; var = strtok_r(NULL, "|", &tmp))
-					pbx_builtin_setvar( chan, var );
+			vartmp = ast_strdupa(variable);
+			for (var = strtok_r(vartmp, "|", &vartmp); var; var = strtok_r(NULL, "|", &vartmp))
+				pbx_builtin_setvar( chan, var );
 		}
 		/* Start a new thread, and get something handling this channel. */
 		pthread_attr_init(&attr);




More information about the svn-commits mailing list