From 374e86ad47af41eaa3a658753e6e21ba6b8afcba Mon Sep 17 00:00:00 2001 From: htrefil <8711792+htrefil@users.noreply.github.com> Date: Sat, 24 Oct 2020 20:44:08 +0200 Subject: [PATCH] Zero the uinput_setup structure --- input/setup/setup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/input/setup/setup.c b/input/setup/setup.c index 511e29c..2c5005b 100644 --- a/input/setup/setup.c +++ b/input/setup/setup.c @@ -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;