mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 21:00:06 +01:00
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 <peter.hutterer@who-t.net>
This commit is contained in:
parent
cfa06b6098
commit
3819b21967
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue