diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-04-24 15:24:11 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-04-27 13:24:40 +1000 |
commit | da439476b529915e9b139135c42d522e18acbc51 (patch) | |
tree | fbde32bfba1d512cd7f7b964e051c08b5eea3548 | |
parent | 852e91bffd33117905bbb8c6ce38a2ea0432495e (diff) |
test: check for event as not null before dereferencing it
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
-rw-r--r-- | test/pointer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pointer.c b/test/pointer.c index 0d49310..01ea2fd 100644 --- a/test/pointer.c +++ b/test/pointer.c @@ -136,6 +136,7 @@ test_absolute_event(struct litest_device *dev, double x, double y) libinput_dispatch(li); event = libinput_get_event(li); + ck_assert_notnull(event); ck_assert_int_eq(libinput_event_get_type(event), LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE); |