Zero the uinput_setup structure

This commit is contained in:
htrefil 2020-10-24 20:44:08 +02:00
parent 435d384eeb
commit 374e86ad47

View file

@ -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;