summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-02-20 17:53:53 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-02-20 17:53:53 +0100
commit9bef367942016b7a2cc9e19aa3e8a834fa2c8393 (patch)
treecccc48eb58d7ce283de67fce5898da4fc1dfda72
parent2971625418c528e9310d4004bf01bfed7e901eb1 (diff)
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.
-rw-r--r--png/png.c2
1 files changed, 1 insertions, 1 deletions
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)\