From b15ffbc1e51f913d6ab1cfa345a06eecfc098405 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Mon, 20 Jan 2025 00:17:00 -0600 Subject: Fix slight problem in readwholebuffer --- src/shared.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/shared.c b/src/shared.c index e5f0f13..f3e98ee 100644 --- a/src/shared.c +++ b/src/shared.c @@ -58,6 +58,7 @@ int readwholebuffer(char **str, unsigned long int initsize, int fd) { if(!tmp) { error(0, errno, "Could not reallocate enough space for lstr"); free(lstr); + lstr = NULL; // Need to set this because of the break bytesread = -100; break; } -- cgit v1.2.3