diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-04 21:19:54 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-04 21:19:54 -0400 |
commit | c3808ada2e031b8362ac5326cecd37b7299d981c (patch) | |
tree | 10515cd1b2de84911f20c81985f2dd0664f48ff9 /config.c | |
parent | 6277d31d51a9234b83d890eab947acbc37d6f276 (diff) |
Fixed typo in `read_file()` to do with the filesize
check.
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |