projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8cdf88
)
fd-util: Fix error handling in safe_fclose
author
Paweł Szewczyk
<p.szewczyk@samsung.com>
Fri, 30 Nov 2018 11:35:23 +0000
(12:35 +0100)
committer
Łukasz Stelmach
<l.stelmach@samsung.com>
Mon, 12 Feb 2024 15:37:43 +0000
(16:37 +0100)
Function fclose_nointr returns negative value on error.
Change-Id: I881469ed78037d531d73e41c77b57aab004a713a
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
src/basic/fd-util.c
patch
|
blob
|
history
diff --git
a/src/basic/fd-util.c
b/src/basic/fd-util.c
index
5c82033
..
646b809
100644
(file)
--- a/
src/basic/fd-util.c
+++ b/
src/basic/fd-util.c
@@
-123,7
+123,7
@@
FILE* safe_fclose(FILE *f) {
if (f) {
PROTECT_ERRNO;
- assert_se(fclose_nointr(f) != EBADF);
+ assert_se(fclose_nointr(f) !=
-
EBADF);
}
return NULL;