aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 61602ec..166dbd7 100644
--- a/main.c
+++ b/main.c
@@ -10,7 +10,7 @@ static char *read_file_to_buffer(char *filename) {
size_t bufsize = BS;
size_t bufread = 0;
char *buf = (char *)malloc(bufsize);
- char *newbuf;
+ char *newbuf = NULL;
while (read(fd, buf + bufread, BS) == BS) {
newbuf = (char *)malloc(bufsize + BS);