changeset 1940:c77019065b96

Initialize two variables to zero, as valgrind complains about them despite that we assume that libPNG should initialize them .. ah well.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 29 Jun 2018 00:28:17 +0300
parents bc00373e5a90
children f530a858c06f
files tools/libgfx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;