[gnome-software: 2/4] gs-hardware-support-context-dialog: Fix some uninitialised variables
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 2/4] gs-hardware-support-context-dialog: Fix some uninitialised variables
- Date: Fri, 13 Aug 2021 15:35:45 +0000 (UTC)
commit a96ab43d3efb6a990578bc591f65b79d9d3be35b
Author: Philip Withnall <pwithnall endlessos org>
Date: Fri Aug 13 16:28:51 2021 +0100
gs-hardware-support-context-dialog: Fix some uninitialised variables
These would be uninitialised if there was no GTK display object
available.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
src/gs-hardware-support-context-dialog.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/gs-hardware-support-context-dialog.c b/src/gs-hardware-support-context-dialog.c
index e8ac456fd..d472b5e2f 100644
--- a/src/gs-hardware-support-context-dialog.c
+++ b/src/gs-hardware-support-context-dialog.c
@@ -309,6 +309,9 @@ gs_hardware_support_context_dialog_get_control_support (GdkDisplay *display,
g_return_if_fail (control_relations != NULL);
any_control_relations_set = FALSE;
+ has_touchscreen = FALSE;
+ has_keyboard = FALSE;
+ has_mouse = FALSE;
/* Initialise @control_relations */
for (gint i = 0; i < AS_CONTROL_KIND_LAST; i++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]