# HG changeset patch # User Matti Hamalainen # Date 1560227876 -10800 # Node ID 7c4c9013e41232c94b58deafa5976a7ecac13916 # Parent 271850d7dd9b8ea6749dd32117945261943ef5bb Cleanups. diff -r 271850d7dd9b -r 7c4c9013e412 tools/lib64fmts.c --- a/tools/lib64fmts.c Tue Jun 11 05:46:54 2019 +0300 +++ b/tools/lib64fmts.c Tue Jun 11 07:37:56 2019 +0300 @@ -1397,6 +1397,7 @@ const DMC64ImageFormat *fmt, const DMC64ImageConvSpec *spec) { int res; + if ((res = dmSetMixedColorC64Palette(dst)) != DMERR_OK) return res; @@ -1441,8 +1442,7 @@ static int fmtDecodeECIPacked(DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageFormat *fmt) { int res; - DMGrowBuf tmp; - DMGrowBuf mem; + DMGrowBuf mem, tmp; DMCompParams cfg; cfg.func = fmt->name;