libansilove

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

commit 2919eedad7fb090ab06d57e7837c84defaa2e00a
parent fb6fd2fde8bd76e795cb4d78d3eeb05ec6b16d75
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 31 Oct 2018 22:49:13 +0100

Don't attempt to call close() if open() failed

Diffstat:
Msrc/loadfile.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/src/loadfile.c b/src/loadfile.c @@ -34,7 +34,6 @@ ansilove_loadfile(struct ansilove_ctx *ctx, char *input) { if (fd == -1) { ctx->error = ANSILOVE_FILE_READ_ERROR; - close(fd); return -1; }