From 88fa909c3cf3c63780feaa5ba92d8bc47f361d63 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Wed, 9 Jun 2021 22:35:19 -0400 Subject: Fixed segfault in `read_file()` that occured whenever the file couldn't be opened. Forgot about that call to `fclose()`. --- config.c | 1 - 1 file changed, 1 deletion(-) (limited to 'config.c') 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; } -- cgit v1.2.3-13-gbd6f