clutter/seat: Fix initial value in clutter_seat_has_touchscreen()

If we didn't have a touchscreen, we returned an uninitialized value.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1801>
This commit is contained in:
Jonas Ådahl 2021-03-24 11:48:40 +01:00
parent 83ed2afe34
commit 71b78c7bf4

View File

@ -672,7 +672,7 @@ clutter_seat_get_touch_mode (ClutterSeat *seat)
gboolean
clutter_seat_has_touchscreen (ClutterSeat *seat)
{
gboolean has_touchscreen;
gboolean has_touchscreen = FALSE;
const GList *devices, *l;
g_return_val_if_fail (CLUTTER_IS_SEAT (seat), FALSE);