mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 01:08:56 +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
Notes:
sideshowbarker
2024-07-18 17:09:12 +09:00
Author: https://github.com/timschumi
Commit: d5bf9182dd
Pull-request: https://github.com/SerenityOS/serenity/pull/7596
1 changed files with 0 additions and 1 deletions
|
@ -15,7 +15,6 @@
|
||||||
errno = -rc; \
|
errno = -rc; \
|
||||||
return (bad_ret); \
|
return (bad_ret); \
|
||||||
} \
|
} \
|
||||||
errno = 0; \
|
|
||||||
return (good_ret); \
|
return (good_ret); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue