mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +00:00
LibC: Missing varargs cleanup in fcntl
This commit is contained in:
parent
4ca493a86a
commit
dc278c3aa1
Notes:
sideshowbarker
2024-07-19 03:30:35 +09:00
Author: https://github.com/bgianfo
Commit: dc278c3aa1
Pull-request: https://github.com/SerenityOS/serenity/pull/3184
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ int fcntl(int fd, int cmd, ...)
|
|||
va_start(ap, cmd);
|
||||
u32 extra_arg = va_arg(ap, u32);
|
||||
int rc = syscall(SC_fcntl, fd, cmd, extra_arg);
|
||||
va_end(ap);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue