diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-04 21:17:33 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-04 21:17:33 -0400 |
commit | 6277d31d51a9234b83d890eab947acbc37d6f276 (patch) | |
tree | 79fe62d58497af3dd5e624c797df5220abf8bc2e /config.c | |
parent | 140659ba9c5542a83f087fbbe258115b909e422b (diff) |
Added missing buffer in `read_file()`.
I forgot to add it, oof.
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -8,6 +8,8 @@ char *read_file(const char *filename, long *size) { FILE *fp = fopen(filename, "r"); /* Size of the file, in bytes. */ long filesize = 0; + /* Buffer of the file contents. */ + char *buf; /* Return NULL, if we couldn't open the file. */ if (fp == NULL) { |