summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-04 21:17:33 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-04 21:17:33 -0400
commit6277d31d51a9234b83d890eab947acbc37d6f276 (patch)
tree79fe62d58497af3dd5e624c797df5220abf8bc2e /config.c
parent140659ba9c5542a83f087fbbe258115b909e422b (diff)
Added missing buffer in `read_file()`.
I forgot to add it, oof.
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index b6a5701..e41ff16 100644
--- a/config.c
+++ b/config.c
@@ -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) {