mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
LibC: Don't clear errno on success
POSIX (`errno(3p)`) states that errno should not be set to zero. This helps with applications that don't expect errno to get updated unless an intermediate syscall also fails.
This commit is contained in:
parent
01c75e3a34
commit
d5bf9182dd
1 changed files with 0 additions and 1 deletions
|
@ -15,7 +15,6 @@
|
|||
errno = -rc; \
|
||||
return (bad_ret); \
|
||||
} \
|
||||
errno = 0; \
|
||||
return (good_ret); \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue