[Asterisk-cvs] asterisk channel.c,1.73.2.11,1.73.2.12
markster at lists.digium.com
markster at lists.digium.com
Thu May 27 12:36:03 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv2858
Modified Files:
Tag: v1-0_stable
channel.c
Log Message:
Fixed it
Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.73.2.11
retrieving revision 1.73.2.12
diff -u -d -r1.73.2.11 -r1.73.2.12
--- channel.c 12 Mar 2004 16:47:28 -0000 1.73.2.11
+++ channel.c 27 May 2004 16:50:46 -0000 1.73.2.12
@@ -1531,12 +1531,17 @@
struct ast_channel *chan;
struct ast_frame *f;
int res = 0;
+ char *variable;
chan = ast_request(type, format, data);
if (chan) {
if (oh) {
char *tmp, *var;
/* JDG chanvar */
- tmp = oh->variable;
+ if (oh->variable)
+ variable = ast_strdupa(oh->variable);
+ else
+ variable = NULL;
+ tmp = variable;
/* FIXME replace this call with strsep NOT*/
while( (var = strtok_r(NULL, "|", &tmp)) ) {
pbx_builtin_setvar( chan, var );
More information about the svn-commits
mailing list