summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-09 22:35:19 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-09 22:35:19 -0400
commit88fa909c3cf3c63780feaa5ba92d8bc47f361d63 (patch)
tree7d5f1f4732ffd385d98d055081e8999f8ec5b77b /config.c
parentcbb37dfa84ff6cc72fc7091c2b3ffb84deb2d0d3 (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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/config.c b/config.c
index 9a4b16c..6847587 100644
--- a/config.c
+++ b/config.c
@@ -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;
}