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:
Peter Hutterer 2016-09-01 09:55:32 +10:00
parent 3ecd389c94
commit 8db9d2b927

View file

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