Skip to content

Commit

Permalink
Fix build with -Wconditional-uninitialized. (#471)
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
  • Loading branch information
PiotrSikora authored and eustas committed Dec 2, 2016
1 parent 396309a commit 6a4bf43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enc/block_splitter_inc.h
Expand Up @@ -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);
Expand Down

0 comments on commit 6a4bf43

Please sign in to comment.