From c388a7e2fe68226ec9b9cb59700e9845fd7501c9 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Fri, 29 May 2015 18:40:25 -0700 Subject: [PATCH] test: address gcc warnings on potentially uninitialized variables. Signed-off-by: Jon A. Cruz Signed-off-by: Peter Hutterer --- test/touch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/touch.c b/test/touch.c index 2c07e090..be2bea92 100644 --- a/test/touch.c +++ b/test/touch.c @@ -586,7 +586,8 @@ START_TEST(touch_initial_state) { struct litest_device *dev; struct libinput *libinput1, *libinput2; - struct libinput_event *ev1, *ev2; + struct libinput_event *ev1 = NULL; + struct libinput_event *ev2 = NULL; struct libinput_event_touch *t1, *t2; struct libinput_device *device1, *device2; int axis = _i; /* looped test */