diff options
author | Luke Bratch <luke@bratch.co.uk> | 2023-03-21 23:41:16 +0000 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2023-03-21 23:41:16 +0000 |
commit | 7d12838e4c4d97cdd2757a8a7e00df41098e9a73 (patch) | |
tree | 6e040ce14ca78e5e4e1e43d88d495d64be896b0a /logging.c | |
parent | d59eee14433a851607281b847de11cc6c2233cff (diff) |
Don't try to close log file if the pointer was NULL.
Diffstat (limited to 'logging.c')
-rw-r--r-- | logging.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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; } |