diff options
| author | gonzo <gonzo@toniatuh.com> | 2023-02-06 10:09:23 +0100 |
|---|---|---|
| committer | gonzo <gonzo@toniatuh.com> | 2023-02-06 10:09:23 +0100 |
| commit | 44854f3381e6205ede8fe41b4885b36cea7bee6d (patch) | |
| tree | b569d05c5d177b643f993e7ef063c6ff963c2b4f /main.c | |
| parent | 320c331b84a6ac4743fcd94c27a20c1b73a513ab (diff) | |
| download | org-to-conky-44854f3381e6205ede8fe41b4885b36cea7bee6d.tar.gz | |
fixing even more stuff(uninitialized pointers, switch to clang)
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
