[PATCH libinput 2/8] test: check for event as not null before dereferencing it
Peter Hutterer
peter.hutterer at who-t.net
Sun Apr 26 22:52:28 PDT 2015
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
test/pointer.c | 1 +
1 file changed, 1 insertion(+)
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);
--
2.3.5
More information about the wayland-devel
mailing list