mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-03 22:00:14 +01:00
evdev: fix uninitialised pointer value
==30224== Conditional jump or move depends on uninitialised value(s) ==30224== at 0x40EE3A0: evdev_flush_motion (evdev.c:284) ==30224== by 0x40EE6DC: evdev_input_device_data (evdev.c:352) ==30224== by 0x4034710: wl_event_source_fd_dispatch (event-loop.c:76) ==30224== by 0x4035171: wl_event_loop_dispatch (event-loop.c:462) ==30224== by 0x4032F76: wl_display_run (wayland-server.c:785) ==30224== by 0x8050972: main (compositor.c:2183) Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
parent
bcac853c53
commit
67b11f7a8d
1 changed files with 2 additions and 0 deletions
|
|
@ -340,6 +340,8 @@ evdev_input_device_data(int fd, uint32_t mask, void *data)
|
|||
return 1;
|
||||
}
|
||||
|
||||
device->type = 0;
|
||||
|
||||
e = ev;
|
||||
end = (void *) ev + len;
|
||||
for (e = ev; e < end; e++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue