mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
config: close FD if it is *valid*, not when it is *invalid*
This commit is contained in:
parent
a24109a5e3
commit
6f114f639a
1 changed files with 1 additions and 1 deletions
2
config.c
2
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue