[asterisk-commits] file: trunk r391982 - /trunk/main/cdr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 17 07:28:35 CDT 2013


Author: file
Date: Mon Jun 17 07:28:34 2013
New Revision: 391982

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=391982
Log:
Fix build warning (which is transmogrified into an error) with my compiler due to uninitialized variable.

Modified:
    trunk/main/cdr.c

Modified: trunk/main/cdr.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/cdr.c?view=diff&rev=391982&r1=391981&r2=391982
==============================================================================
--- trunk/main/cdr.c (original)
+++ trunk/main/cdr.c Mon Jun 17 07:28:34 2013
@@ -942,7 +942,7 @@
  */
 static struct ast_cdr *cdr_object_create_public_records(struct cdr_object *cdr)
 {
-	struct ast_cdr *pub_cdr = NULL, *cdr_prev;
+	struct ast_cdr *pub_cdr = NULL, *cdr_prev = NULL;
 	struct ast_var_t *it_var, *it_copy_var;
 	struct ast_channel_snapshot *party_a;
 	struct ast_channel_snapshot *party_b;




More information about the asterisk-commits mailing list