From ead09bf6cca2f19d934906a0108037b594be8099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 22 Jul 2016 23:09:45 +0200 Subject: [PATCH] wayland: Shut up a compiler warning If the compiler cannot figure out that the condition for setting the dev variable is the same as the condition for accessing it, it will complain about potential uninitialized use. --- src/wayland/meta-wayland-tablet-seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-tablet-seat.c b/src/wayland/meta-wayland-tablet-seat.c index d49238c22..9cd8faf20 100644 --- a/src/wayland/meta-wayland-tablet-seat.c +++ b/src/wayland/meta-wayland-tablet-seat.c @@ -485,7 +485,7 @@ lookup_grouped_devices (ClutterInputDevice *device, MetaBackend *backend = meta_get_backend (); #ifdef HAVE_NATIVE_BACKEND - struct libinput_device *dev, *libinput_device; + struct libinput_device *dev = NULL, *libinput_device; if (META_IS_BACKEND_NATIVE (backend)) dev = clutter_evdev_input_device_get_libinput_device (device);