[at-spi2-core/gnome-41: 3/14] spi_dec_plat_mouse_check(): don't leave moved uninitialized
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core/gnome-41: 3/14] spi_dec_plat_mouse_check(): don't leave moved uninitialized
- Date: Sat, 17 Sep 2022 13:52:22 +0000 (UTC)
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]