From 3819b219678c80b46836cae9f9ab0f6307a8efd0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 30 Oct 2019 10:38:02 +1000 Subject: [PATCH] test: silence a coverity warning Coverity complains that we call libinput_event_destroy() twice on the variable (once in and once just outside the condition). This is technically correct but never true because we always break the loop early for the touch up/frame events. Let's just reset the pointers so coverity is happy. Signed-off-by: Peter Hutterer --- test/test-touch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-touch.c b/test/test-touch.c index 81accf94..2b513cc2 100644 --- a/test/test-touch.c +++ b/test/test-touch.c @@ -871,6 +871,8 @@ START_TEST(touch_initial_state) libinput_event_destroy(ev1); libinput_event_destroy(ev2); + ev1 = NULL; + ev2 = NULL; } libinput_event_destroy(ev1);