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.
This commit is contained in:
Florian Müllner 2016-07-22 23:09:45 +02:00
parent fe09a3c4e2
commit ead09bf6cc

View File

@ -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);