Fix build with -Wconditional-uninitialized. (#471)

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
This commit is contained in:
Piotr Sikora 2016-12-02 00:52:54 -08:00 committed by Eugene Kliuchnikov
parent 396309a529
commit 6a4bf43968
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ static void FN(SplitByteVector)(MemoryManager* m,
{ {
/* Find a good path through literals with the good entropy codes. */ /* Find a good path through literals with the good entropy codes. */
uint8_t* block_ids = BROTLI_ALLOC(m, uint8_t, length); 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; const size_t bitmaplen = (num_histograms + 7) >> 3;
double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms); double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms);
double* cost = BROTLI_ALLOC(m, double, num_histograms); double* cost = BROTLI_ALLOC(m, double, num_histograms);