aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-27 19:11:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-27 19:11:03 +0000
commit6f114f639adea4bfba801d08f5e2ee206d10d0e6 (patch)
treed4f21412ea835fdbccedd98500edc9bf70b97669
parentdoc: foot.ini: highlight configuration file paths with bold, not italic/underline (diff)
config: close FD if it is *valid*, not when it is *invalid*
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index c1f59b6c..83a0ef4d 100644
--- a/config.c
+++ b/config.c
@@ -1849,7 +1849,7 @@ out:
tll_push_back(conf->fonts, config_font_parse("monospace"));
free(conf_file.path);
- if (conf_file.fd < 0)
+ if (conf_file.fd >= 0)
close(conf_file.fd);
return ret;