[mutter] clutter/seat: Fix initial value in clutter_seat_has_touchscreen()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/seat: Fix initial value in clutter_seat_has_touchscreen()
- Date: Wed, 24 Mar 2021 20:01:28 +0000 (UTC)
commit 71b78c7bf44f4fd5313a66712ce4367169d8e0f7
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Wed Mar 24 11:48:40 2021 +0100
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>
clutter/clutter/clutter-seat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/clutter/clutter/clutter-seat.c b/clutter/clutter/clutter-seat.c
index 4aa8e7abbf..24f36edbdf 100644
--- a/clutter/clutter/clutter-seat.c
+++ b/clutter/clutter/clutter-seat.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]