diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-02-20 17:53:53 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-02-20 17:53:53 +0100 |
| commit | 9bef367942016b7a2cc9e19aa3e8a834fa2c8393 (patch) | |
| tree | cccc48eb58d7ce283de67fce5898da4fc1dfda72 | |
| parent | 2971625418c528e9310d4004bf01bfed7e901eb1 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)\ |
