mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
fe09a3c4e2
commit
ead09bf6cc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user