diff options
| author | @syxhe <https://t.me/syxhe> | 2025-01-20 00:17:00 -0600 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2025-01-20 00:17:00 -0600 |
| commit | b15ffbc1e51f913d6ab1cfa345a06eecfc098405 (patch) | |
| tree | fc8b2f74081f871ff1510aa21430bf8c44b432af /src/shared.c | |
| parent | 2f66e8678971ba0340a96d811ced405d75dbb114 (diff) | |
Fix slight problem in readwholebuffer
Diffstat (limited to 'src/shared.c')
| -rw-r--r-- | src/shared.c | 1 |
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 | } |
