avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcrea...@apache.org
Subject svn commit: r1340980 - /avro/trunk/lang/c/tests/performance.c
Date Mon, 21 May 2012 12:00:29 GMT
Author: dcreager
Date: Mon May 21 12:00:28 2012
New Revision: 1340980

URL: http://svn.apache.org/viewvc?rev=1340980&view=rev
Log:
AVRO-1088. C: Fix compiler warning in test case.

Contributed by Pugachev Maxim.

Modified:
    avro/trunk/lang/c/tests/performance.c

Modified: avro/trunk/lang/c/tests/performance.c
URL: http://svn.apache.org/viewvc/avro/trunk/lang/c/tests/performance.c?rev=1340980&r1=1340979&r2=1340980&view=diff
==============================================================================
--- avro/trunk/lang/c/tests/performance.c (original)
+++ avro/trunk/lang/c/tests/performance.c Mon May 21 12:00:28 2012
@@ -411,7 +411,7 @@ test_generic_helper( unsigned long num_t
 	avro_generic_value_new(reader_iface, &out);
 
 	/* Use resolved reader to resolve schemas while writing data to memory */
-	avro_value_iface_t *resolved_reader_iface;
+	avro_value_iface_t *resolved_reader_iface = NULL;
 	avro_value_t resolved_reader_value;
 	if ( resolution_type & USE_RESOLVED_READER ) {
 		resolved_reader_iface = avro_resolved_reader_new( schema, schema );
@@ -421,7 +421,7 @@ test_generic_helper( unsigned long num_t
 	}
 
 	/* Use resolved writer to resolve schemas while reading data from memory */
-	avro_value_iface_t *resolved_writer_iface;
+	avro_value_iface_t *resolved_writer_iface = NULL;
 	avro_value_t resolved_writer_value;
 	if ( resolution_type & USE_RESOLVED_WRITER ) {
 		resolved_writer_iface = avro_resolved_writer_new( schema, schema );
@@ -431,8 +431,8 @@ test_generic_helper( unsigned long num_t
 	}
 
 	/* Set up pointers */
-	avro_value_t *p_value_to_write_to_memory;
-	avro_value_t *p_value_to_read_from_memory;
+	avro_value_t *p_value_to_write_to_memory = NULL;
+	avro_value_t *p_value_to_read_from_memory = NULL;
 
 	if ( resolution_type == USE_MATCHED_SCHEMAS ) {
 		p_value_to_write_to_memory = &val;



Mime
View raw message