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 /config.c | |
parent | d59eee14433a851607281b847de11cc6c2233cff (diff) |
Don't try to close log file if the pointer was NULL.
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -100,7 +100,7 @@ int getconfstr(char *confname, char *filename, char* dest) { debugprint(DEBUG_FULL, "getconfstr(): returning '%s'.\n", dest); - // Close fine and return success + // Close file and return success fclose(fp); return 1; } @@ -201,7 +201,7 @@ int getconfarr(char *confname, char *filename, char dest[MAXCONFARR][MAXDATASIZE debugprint(DEBUG_FULL, "getconfarr(): returning '%s'.\n", dest[i]); } - // Close fine and return success (or 0 if no values found in an otherwise valid array) + // Close file and return success (or 0 if no values found in an otherwise valid array) fclose(fp); if (valuecount) { return 1; |