summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2021-11-25 09:50:45 -0800
committerGreg Ercolano <erco@seriss.com>2021-11-25 09:50:45 -0800
commit2b400f6abcbd26377b298deb5ee6f7d0166cdfd6 (patch)
tree3d51ef53d1a80833e7e2fea38501bde244039839
parent7b9ddd97c3f1feb30f06e5da43b5158512862fc3 (diff)
Solves png warnings from gcc 11.2.0/Rev2 for issue #296
-rw-r--r--png/png.c2
1 files changed, 1 insertions, 1 deletions
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)\