[asterisk-commits] file: branch 1.4 r71422 - /branches/1.4/main/cdr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jun 24 20:07:32 CDT 2007


Author: file
Date: Sun Jun 24 20:07:31 2007
New Revision: 71422

URL: http://svn.digium.com/view/asterisk?view=rev&rev=71422
Log:
Fix it so 1.4 actually compiles on my box.

Modified:
    branches/1.4/main/cdr.c

Modified: branches/1.4/main/cdr.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/cdr.c?view=diff&rev=71422&r1=71421&r2=71422
==============================================================================
--- branches/1.4/main/cdr.c (original)
+++ branches/1.4/main/cdr.c Sun Jun 24 20:07:31 2007
@@ -525,7 +525,7 @@
 	if (ast_test_flag(from, AST_CDR_FLAG_LOCKED)) {
 		discard_from = 1;
 		if (lto) {
-			struct ast_cdr *llfrom;
+			struct ast_cdr *llfrom = NULL;
 			/* insert the from stuff after lto */
 			lto->next = from;
 			lfrom = from;
@@ -540,7 +540,7 @@
 		} else {
 			/* save copy of the current *to cdr */
 			struct ast_cdr tcdr;
-			struct ast_cdr *llfrom;
+			struct ast_cdr *llfrom = NULL;
 			memcpy(&tcdr, to, sizeof(tcdr));
 			/* copy in the locked from cdr */
 			memcpy(to, from, sizeof(*to));




More information about the asterisk-commits mailing list