[asterisk-commits] branch 1.0 - r7467 /branches/1.0/apps/app_forkcdr.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Dec 13 01:40:58 CST 2005


Author: russell
Date: Tue Dec 13 01:40:57 2005
New Revision: 7467

URL: http://svn.digium.com/view/asterisk?rev=7467&view=rev
Log:
properly reset the 'next' pointer when duplicating the cdr (issue #5921)

Modified:
    branches/1.0/apps/app_forkcdr.c

Modified: branches/1.0/apps/app_forkcdr.c
URL: http://svn.digium.com/view/asterisk/branches/1.0/apps/app_forkcdr.c?rev=7467&r1=7466&r2=7467&view=diff
==============================================================================
--- branches/1.0/apps/app_forkcdr.c (original)
+++ branches/1.0/apps/app_forkcdr.c Tue Dec 13 01:40:57 2005
@@ -37,6 +37,7 @@
 static void ast_cdr_clone(struct ast_cdr *cdr) {
 	struct ast_cdr *newcdr = ast_cdr_alloc();
 	memcpy(newcdr,cdr,sizeof(struct ast_cdr));
+	newcdr->next = NULL;
 	ast_cdr_append(cdr,newcdr);
 	gettimeofday(&newcdr->start, NULL);
 	memset(&newcdr->answer, 0, sizeof(newcdr->answer));



More information about the asterisk-commits mailing list