Skip to content

Commit 0d3cea7

Browse files
committed
Add missing initialization to result variable in recompress.c
When building with -O1 or higher compiler would warn about uninitialized variable: tsl/src/compression/recompress.c:715:39: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized] 715 | while (result == Tuple_before)
1 parent 0a51c86 commit 0d3cea7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tsl/src/compression/recompress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ recompress_chunk_segmentwise_impl(Chunk *uncompressed_chunk,
685685

686686
bool done_with_segment = false;
687687
bool tuples_for_recompression = false;
688-
enum Batch_match_result result;
688+
enum Batch_match_result result = Tuple_match;
689689

690690
/* For full segmentwise decompress/compress we decompress all batches in
691691
* the current segment (i.e. treat each batch as a match) */

0 commit comments

Comments
 (0)