fd-util: Fix error handling in safe_fclose

Function fclose_nointr returns negative value on error.
This commit is contained in:
Paweł Szewczyk
2018-12-06 16:15:39 +01:00
committed by Yu Watanabe
parent a91f96ad39
commit 6dce3bb401
+1 -1
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;