From 7d12838e4c4d97cdd2757a8a7e00df41098e9a73 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Tue, 21 Mar 2023 23:41:16 +0000 Subject: Don't try to close log file if the pointer was NULL. --- logging.c | 1 - 1 file changed, 1 deletion(-) (limited to 'logging.c') diff --git a/logging.c b/logging.c index a3eac5b..d0ad1a5 100644 --- a/logging.c +++ b/logging.c @@ -341,7 +341,6 @@ int logline(char *str, struct ircdstate *ircdstate, char *basedir, int type) { if (fp == NULL) { debugprint(DEBUG_CRIT, "error: could not open log file '%s' for writing.\n", filename); printf("error: could not open log file '%s' for writing.\n", filename); - fclose(fp); return 0; } -- cgit v1.2.3