diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-09 22:35:19 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-09 22:35:19 -0400 |
commit | 88fa909c3cf3c63780feaa5ba92d8bc47f361d63 (patch) | |
tree | 7d5f1f4732ffd385d98d055081e8999f8ec5b77b /config.c | |
parent | cbb37dfa84ff6cc72fc7091c2b3ffb84deb2d0d3 (diff) |
Fixed segfault in `read_file()` that occured whenever
the file couldn't be opened.
Forgot about that call to `fclose()`.
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -14,7 +14,6 @@ char *read_file(const char *filename, long *size) { /* Return NULL, if we couldn't open the file. */ if (fp == NULL) { - fclose(fp); return NULL; } |