ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 21fa0a6d2049f82556433858991a0887e97e83a7
parent fd59bb36c65963d752582732f1ae3a10e5559789
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 10 Dec 2019 11:00:15 +0100

Call memset() to set all record struct fields to zero.

Diffstat:
Msrc/sauce.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/sauce.c b/src/sauce.c @@ -38,6 +38,7 @@ sauceReadFile(FILE *file) { sauce *record; record = malloc(sizeof *record); + memset(record, 0, sizeof *record); if (record != NULL) { readRecord(file, record);