diff options
author | Piotr Sikora <piotrsikora@google.com> | 2016-12-02 00:52:54 -0800 |
---|---|---|
committer | Eugene Kliuchnikov <eustas@google.com> | 2016-12-02 09:52:54 +0100 |
commit | 6a4bf439681dde015ddedacc179f973a5e23bd97 (patch) | |
tree | b9e90c901cd8331ad2d4f54121a104693eb3b5f5 | |
parent | 396309a52912e171bd4650927b241e6fbd8b5527 (diff) | |
download | brotli-6a4bf439681dde015ddedacc179f973a5e23bd97.zip brotli-6a4bf439681dde015ddedacc179f973a5e23bd97.tar.gz brotli-6a4bf439681dde015ddedacc179f973a5e23bd97.tar.bz2 |
Fix build with -Wconditional-uninitialized. (#471)
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
-rw-r--r-- | enc/block_splitter_inc.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |