ansilove

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

commit d07b7d01d0c1e48be4b2df55ee6cedbc2a452a1e
parent 1b594dd8ed72ec6a09fc93025bfb757987ec05d1
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 17 Dec 2016 18:20:55 +0100

Set *font_data_xbin to NULL

Diffstat:
Msrc/loaders/xbin.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/loaders/xbin.c b/src/loaders/xbin.c @@ -14,7 +14,7 @@ void xbin(unsigned char *inputFileBuffer, int32_t inputFileSize, char *output, char *retinaout, bool createRetinaRep) { const unsigned char *font_data; - unsigned char *font_data_xbin; + unsigned char *font_data_xbin = NULL; if (strncmp((char *)inputFileBuffer, "XBIN\x1a", 5) != 0) { fputs("\nNot an XBin.\n\n", stderr); exit (4);