1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00

fd-util: Fix error handling in safe_fclose

Function fclose_nointr returns negative value on error.
This commit is contained in:
Paweł Szewczyk 2018-11-30 12:35:23 +01:00 committed by Yu Watanabe
parent a91f96ad39
commit 6dce3bb401

View File

@ -114,7 +114,7 @@ FILE* safe_fclose(FILE *f) {
if (f) {
PROTECT_ERRNO;
assert_se(fclose_nointr(f) != EBADF);
assert_se(fclose_nointr(f) != -EBADF);
}
return NULL;