mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 20:38:08 +02:00
test: fail before zero division
Found by coverity Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
776c55f636
commit
65c4b27260
1 changed files with 1 additions and 0 deletions
|
|
@ -507,6 +507,7 @@ wheel_click_count(struct litest_device *dev, int which)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
count = parse_mouse_wheel_click_count_property(prop);
|
count = parse_mouse_wheel_click_count_property(prop);
|
||||||
|
litest_assert_int_ne(count, 0);
|
||||||
angle = 360.0/count;
|
angle = 360.0/count;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue