mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
fd-util: Fix error handling in safe_fclose
Function fclose_nointr returns negative value on error.
This commit is contained in:
parent
a91f96ad39
commit
6dce3bb401
@ -114,7 +114,7 @@ FILE* safe_fclose(FILE *f) {
|
|||||||
if (f) {
|
if (f) {
|
||||||
PROTECT_ERRNO;
|
PROTECT_ERRNO;
|
||||||
|
|
||||||
assert_se(fclose_nointr(f) != EBADF);
|
assert_se(fclose_nointr(f) != -EBADF);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user