From b5f2a9ed49934c65a29322e2f4cc387b1766107f Mon Sep 17 00:00:00 2001 From: James Zern Date: Mon, 7 May 2012 18:32:04 -0700 Subject: [PATCH] enc/vp8l: fix uninitialized variable warning histogram_image_size could be unset if the code branches to the 'Error' label. Change-Id: I690b20f86372f19a47d159c2bec8fbf49553f0d5 --- src/enc/vp8l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc/vp8l.c b/src/enc/vp8l.c index 7d5e70fa..197fda8f 100644 --- a/src/enc/vp8l.c +++ b/src/enc/vp8l.c @@ -679,7 +679,7 @@ static int EncodeImageInternal(VP8LBitWriter* const bw, VP8LSubSampleSize(height, histogram_bits); VP8LHistogramSet* histogram_image = VP8LAllocateHistogramSet(histogram_image_xysize, 0); - int histogram_image_size; + int histogram_image_size = 0; VP8LBackwardRefs refs; uint16_t* const histogram_symbols = (uint16_t*)malloc(histogram_image_xysize * sizeof(*histogram_symbols));