mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibC: Missing varargs cleanup in ioctl
This commit is contained in:
parent
dc278c3aa1
commit
9ffbe03bdb
Notes:
sideshowbarker
2024-07-19 03:30:31 +09:00
Author: https://github.com/bgianfo
Commit: 9ffbe03bdb
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 ioctl(int fd, unsigned request, ...)
|
|||
va_start(ap, request);
|
||||
unsigned arg = va_arg(ap, unsigned);
|
||||
int rc = syscall(SC_ioctl, fd, request, arg);
|
||||
va_end(ap);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue