From d449b429e8ae3586f9defda53a69fba6bf5b8b38 Mon Sep 17 00:00:00 2001 From: Marc-Philip Date: Mon, 19 Jun 2017 13:04:20 +0200 Subject: [PATCH] fix unitialized variable --- src/common/quantize.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/quantize.cpp b/src/common/quantize.cpp index 9d2eca611f..accf73e1fe 100644 --- a/src/common/quantize.cpp +++ b/src/common/quantize.cpp @@ -1428,6 +1428,7 @@ void wxQuantize::DoQuantize(unsigned w, unsigned h, unsigned char **in_rows, uns j_decompress dec; my_cquantize_ptr cquantize; + dec.colormap = NULL; dec.output_width = w; dec.desired_number_of_colors = desiredNoColours; prepare_range_limit_table(&dec);