mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 09:20:29 +01:00
evdev: fix handling of click wheel on parsing errors
Introduced in b02acd346b, we need to check the angle returned by the parsing
function, not the variable passed in.
Found by Coverity
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3ecd389c94
commit
8db9d2b927
1 changed files with 1 additions and 1 deletions
|
|
@ -1831,7 +1831,7 @@ evdev_read_wheel_click_prop(struct evdev_device *device,
|
|||
return false;
|
||||
|
||||
val = parse_mouse_wheel_click_angle_property(prop);
|
||||
if (angle) {
|
||||
if (val) {
|
||||
*angle = val;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue