mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-26 01:40:09 +01:00
test: fix valgrind complaint about uninitialized bytes
uinput ignores the timestamp, but add it anyway to stop valgrind worrying about it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6482f9ad2a
commit
6374dcf532
1 changed files with 2 additions and 0 deletions
|
|
@ -377,6 +377,8 @@ uinput_device_event(const struct uinput_device *dev, unsigned int type, unsigned
|
|||
ev.type = type;
|
||||
ev.code = code;
|
||||
ev.value = value;
|
||||
ev.time.tv_sec = 0;
|
||||
ev.time.tv_usec = 0;
|
||||
|
||||
rc = write(dev->d.fd, &ev, sizeof(ev));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue