From c3808ada2e031b8362ac5326cecd37b7299d981c Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 4 Jun 2021 21:19:54 -0400 Subject: Fixed typo in `read_file()` to do with the filesize check. --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index e41ff16..46c833a 100644 --- a/config.c +++ b/config.c @@ -27,7 +27,7 @@ char *read_file(const char *filename, long *size) { filesize = ftell(fp); /* Return NULL, if the returned size is negative. */ - if (*filesize < 0) { + if (filesize < 0) { fclose(fp); return NULL; } -- cgit v1.2.3-13-gbd6f