summaryrefslogtreecommitdiff
path: root/src/shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared.c')
-rw-r--r--src/shared.c1
1 files changed, 1 insertions, 0 deletions
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) {
58 if(!tmp) { 58 if(!tmp) {
59 error(0, errno, "Could not reallocate enough space for lstr"); 59 error(0, errno, "Could not reallocate enough space for lstr");
60 free(lstr); 60 free(lstr);
61 lstr = NULL; // Need to set this because of the break
61 bytesread = -100; 62 bytesread = -100;
62 break; 63 break;
63 } 64 }