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;