[Asterisk-cvs] asterisk/apps app_forkcdr.c,1.6,1.7

markster at lists.digium.com markster at lists.digium.com
Fri Mar 25 10:29:58 CST 2005


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

Modified Files:
	app_forkcdr.c 
Log Message:
Fix fork CDR seggy (bug #3855)


Index: app_forkcdr.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_forkcdr.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- app_forkcdr.c	23 Feb 2005 22:48:47 -0000	1.6
+++ app_forkcdr.c	25 Mar 2005 16:24:12 -0000	1.7
@@ -64,7 +64,8 @@
 	int res=0;
 	struct localuser *u;
 	LOCAL_USER_ADD(u);
-	ast_set2_flag(chan->cdr, strchr((char *)data, 'v'), AST_CDR_FLAG_KEEP_VARS);
+	if (data && !ast_strlen_zero(data))
+		ast_set2_flag(chan->cdr, strchr((char *)data, 'v'), AST_CDR_FLAG_KEEP_VARS);
 	
 	ast_cdr_fork(chan);
 




More information about the svn-commits mailing list