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:
parent
a91f96ad39
commit
6dce3bb401
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user