From 9bef367942016b7a2cc9e19aa3e8a834fa2c8393 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 20 Feb 2023 17:53:53 +0100 Subject: Re-apply PNG warning fix (#296, #682) The fix for compiler warning [-Wmaybe-uninitialized] had been fixed in commit 2b400f6abcbd26377b298deb5ee6f7d0166cdfd6 but accidentally reverted in commit 39eba133de302f393cc2dabfa5c1d933239cd1ce. --- png/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/png/png.c b/png/png.c index 4f3e8bbd3..5e730c46b 100644 --- a/png/png.c +++ b/png/png.c @@ -752,7 +752,7 @@ png_convert_to_rfc1123_buffer(char out[29], png_const_timep ptime) { size_t pos = 0; - char number_buf[5]; /* enough for a four-digit year */ + char number_buf[5] = ""; /* enough for a four-digit year */ /* FLTK Issue #296 */ # define APPEND_STRING(string) pos = png_safecat(out, 29, pos, (string)) # define APPEND_NUMBER(format, value)\ -- cgit v1.2.3