From f019d6c31d588ccbeee6b539ba6883f34c844fbc Mon Sep 17 00:00:00 2001 From: bibi samina Date: Thu, 2 Jul 2026 20:39:52 +0530 Subject: [PATCH] fix display row pointer declaration in readpng and timepng --- contrib/libtests/readpng.c | 2 +- contrib/libtests/timepng.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)