libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit dc0279a55136b6c588f13bb8cb2db635a7125be7
parent 4ad1436424b2cfcd794be53efeef7ebac4f815d3
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun, 11 Oct 2020 10:16:06 +0200

Initialize ansi_buffer and pcboard_buffer to NULL.

Diffstat:
Msrc/loaders/ansi.c | 2+-
Msrc/loaders/pcboard.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -80,7 +80,7 @@ ansilove_ansi(struct ansilove_ctx *ctx, struct ansilove_options *options) /* ANSi buffer structure array definition */ size_t structIndex = 0; - struct ansiChar *ptr, *ansi_buffer; + struct ansiChar *ptr, *ansi_buffer = NULL; struct fontStruct fontData; size_t ansi_buffer_size = ANSI_BUFFER_SIZE; diff --git a/src/loaders/pcboard.c b/src/loaders/pcboard.c @@ -49,7 +49,7 @@ ansilove_pcboard(struct ansilove_ctx *ctx, struct ansilove_options *options) struct fontStruct fontData; /* PCB buffer structure array definition */ - struct pcbChar *ptr, *pcboard_buffer; + struct pcbChar *ptr, *pcboard_buffer = NULL; /* libgd image pointers */ gdImagePtr canvas;