From 6a4bf439681dde015ddedacc179f973a5e23bd97 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 2 Dec 2016 00:52:54 -0800 Subject: [PATCH] Fix build with -Wconditional-uninitialized. (#471) Signed-off-by: Piotr Sikora --- enc/block_splitter_inc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enc/block_splitter_inc.h b/enc/block_splitter_inc.h index 1b76042..8574fb9 100644 --- a/enc/block_splitter_inc.h +++ b/enc/block_splitter_inc.h @@ -398,7 +398,7 @@ static void FN(SplitByteVector)(MemoryManager* m, { /* Find a good path through literals with the good entropy codes. */ uint8_t* block_ids = BROTLI_ALLOC(m, uint8_t, length); - size_t num_blocks; + size_t num_blocks = 0; const size_t bitmaplen = (num_histograms + 7) >> 3; double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms); double* cost = BROTLI_ALLOC(m, double, num_histograms);