mirror of
https://github.com/htrefil/rkvm.git
synced 2025-02-05 20:46:13 +01:00
Zero the uinput_setup structure
This commit is contained in:
parent
435d384eeb
commit
374e86ad47
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ int setup_write_fd(int fd) {
|
|||
IOCTL(fd, UI_SET_RELBIT, REL_WHEEL);
|
||||
|
||||
struct uinput_setup setup;
|
||||
memset(&setup, 0, sizeof(setup));
|
||||
setup.id.bustype = BUS_USB;
|
||||
setup.id.vendor = 1;
|
||||
setup.id.product = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue