summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-04 21:19:54 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-04 21:19:54 -0400
commitc3808ada2e031b8362ac5326cecd37b7299d981c (patch)
tree10515cd1b2de84911f20c81985f2dd0664f48ff9 /config.c
parent6277d31d51a9234b83d890eab947acbc37d6f276 (diff)
Fixed typo in `read_file()` to do with the filesize
check.
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
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;
}