[mutter/cherry-pick-eccf7b10] input-settings: Use 0 initialized struct for kbd a11y
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/cherry-pick-eccf7b10] input-settings: Use 0 initialized struct for kbd a11y
- Date: Tue, 30 Apr 2019 10:58:07 +0000 (UTC)
commit 9a795d3d0f5a8568e6f17e274d3f7f0374bd1fc9
Author: Olivier Fourdan <ofourdan redhat com>
Date: Fri Apr 26 08:49:22 2019 +0000
input-settings: Use 0 initialized struct for kbd a11y
Make sure our keyboard accessibility settings structure is all zero
initialized, to avoid potential padding issues on some platform when
comparing settings.
Reported by Daniel van Vugt on IRC.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/552
(cherry picked from commit eccf7b105ca36f2554e897332d05c54cd8e7d1bb)
src/backends/meta-input-settings.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/meta-input-settings.c b/src/backends/meta-input-settings.c
index 7b8df561a..b7aec8d6d 100644
--- a/src/backends/meta-input-settings.c
+++ b/src/backends/meta-input-settings.c
@@ -1216,7 +1216,7 @@ load_keyboard_a11y_settings (MetaInputSettings *input_settings,
ClutterInputDevice *device)
{
MetaInputSettingsPrivate *priv = meta_input_settings_get_instance_private (input_settings);
- ClutterKbdA11ySettings kbd_a11y_settings;
+ ClutterKbdA11ySettings kbd_a11y_settings = { 0 };
ClutterInputDevice *core_keyboard;
guint i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]