From 6277d31d51a9234b83d890eab947acbc37d6f276 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 4 Jun 2021 21:17:33 -0400 Subject: Added missing buffer in `read_file()`. I forgot to add it, oof. --- config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.c') 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) { -- cgit v1.2.3-13-gbd6f