Skip to content
Myr

Remove extra close call on config_load success

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The following if (conf_file.fd >= 0) close(conf_file.fd); branch would otherwise be taken and pollute strace logs with unnecessary error lines.

authored by Hubert Hirtz · committed by Hubert Hirtz · parent f7c632d · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:config.c+1 added
1749 unmodified lines
1750 } else1751 ret = true;17521753 fclose(f);1754 conf_file.fd = -1;17551756out:17571758 free(conf_file.path);
32 unmodified lines