mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 18:10:28 +01: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;
|
||||
|
||||
count = parse_mouse_wheel_click_count_property(prop);
|
||||
litest_assert_int_ne(count, 0);
|
||||
angle = 360.0/count;
|
||||
|
||||
out:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue