From 2b400f6abcbd26377b298deb5ee6f7d0166cdfd6 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Thu, 25 Nov 2021 09:50:45 -0800 Subject: [PATCH] Solves png warnings from gcc 11.2.0/Rev2 for issue #296 --- png/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/png/png.c b/png/png.c index 757c755f9..6805db9a6 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)\