mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
LibC: Missing varargs cleanup in ioctl
This commit is contained in:
parent
dc278c3aa1
commit
9ffbe03bdb
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
Reference in a new issue