# HG changeset patch # User Matti Hamalainen # Date 1530221297 -10800 # Node ID c77019065b966a23ea8157091281728255f46089 # Parent bc00373e5a90da9034871912e9b3a677a2b9b3f9 Initialize two variables to zero, as valgrind complains about them despite that we assume that libPNG should initialize them .. ah well. diff -r bc00373e5a90 -r c77019065b96 tools/libgfx.c --- a/tools/libgfx.c Fri Jun 29 00:27:42 2018 +0300 +++ b/tools/libgfx.c Fri Jun 29 00:28:17 2018 +0300 @@ -599,7 +599,7 @@ png_colorp palette = NULL; png_bytep *row_pointers = NULL; png_bytep trans = NULL; - png_uint_32 width, height, res_x, res_y; + png_uint_32 width, height, res_x = 0, res_y = 0; int i, bit_depth, color_type, ncolors, ntrans, unit_type; int res = DMERR_OK; DMImage *img;