enc/vp8l: fix uninitialized variable warning

histogram_image_size could be unset if the code branches to the 'Error'
label.

Change-Id: I690b20f86372f19a47d159c2bec8fbf49553f0d5
This commit is contained in:
James Zern 2012-05-07 18:32:04 -07:00
parent 7885f8b25d
commit b5f2a9ed49

View File

@ -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));