[at-spi2-core/gnome-41: 3/14] spi_dec_plat_mouse_check(): don't leave moved uninitialized




commit 4294ec4eddda386cb10bf7676bfb5603fe094192
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Dec 14 16:10:45 2021 -0600

    spi_dec_plat_mouse_check(): don't leave moved uninitialized

 registryd/deviceeventcontroller.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c
index 942f383b..c8dc4ebb 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -123,7 +123,13 @@ spi_dec_plat_mouse_check (SpiDEController *controller,
   if (klass->plat.mouse_check)
     return klass->plat.mouse_check (controller, x, y, moved);
   else
-    return 0;
+    {
+      if (moved)
+        {
+          *moved = FALSE;
+        }
+      return 0;
+    }
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]