summaryrefslogtreecommitdiff
path: root/config.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 /config.c
parentd59eee14433a851607281b847de11cc6c2233cff (diff)
Don't try to close log file if the pointer was NULL.
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index 483f88e..2ee47f5 100644
--- a/config.c
+++ b/config.c
@@ -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;