summaryrefslogtreecommitdiff
path: root/logging.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2023-03-21 23:41:16 +0000
committerLuke Bratch <luke@bratch.co.uk>2023-03-21 23:41:16 +0000
commit7d12838e4c4d97cdd2757a8a7e00df41098e9a73 (patch)
tree6e040ce14ca78e5e4e1e43d88d495d64be896b0a /logging.c
parentd59eee14433a851607281b847de11cc6c2233cff (diff)
Don't try to close log file if the pointer was NULL.
Diffstat (limited to 'logging.c')
-rw-r--r--logging.c1
1 files changed, 0 insertions, 1 deletions
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;
}