diff --git a/contrib/libtests/readpng.c b/contrib/libtests/readpng.c index 322b5d1837..8c721aa3ea 100644 --- a/contrib/libtests/readpng.c +++ b/contrib/libtests/readpng.c @@ -34,7 +34,7 @@ read_png(FILE *fp) { png_struct *png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING,0,0,0); png_info *info_ptr = NULL; - png_byte *row = NULL, display = NULL; + png_byte *row = NULL, *display = NULL; if (png_ptr == NULL) return 0; diff --git a/contrib/libtests/timepng.c b/contrib/libtests/timepng.c index d92e7014bf..d4cdbfff2f 100644 --- a/contrib/libtests/timepng.c +++ b/contrib/libtests/timepng.c @@ -84,7 +84,7 @@ static void read_by_row(png_struct *png_ptr, png_info *info_ptr, /* These don't get freed on error, this is fine; the program immediately * exits. */ - png_byte *row = NULL, display = NULL; + png_byte *row = NULL, *display = NULL; io_data io_copy; if (write_ptr != NULL)