From 2c721f484d9177d28f27a4a33eb2cd0e6c4798fd Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 13 Mar 2017 20:25:15 +0100 Subject: Keystroke.h: sane struct init Correctly use constant for unused structs instead of implicitly setting it through calloc(). --- nx-X11/programs/Xserver/hw/nxagent/Keystroke.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c index 6e8c9c2a8..9165a057a 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c @@ -369,6 +369,7 @@ static void parse_keystroke_file(void) for (bindings = cur->children; bindings; bindings = bindings->next) { + map[idx].stroke = KEYSTROKE_NOTHING; if (bindings->type == XML_ELEMENT_NODE && strcmp((char *)bindings->name, "keystroke") == 0 && read_binding_from_xmlnode(bindings, &(map[idx]))) -- cgit v1.2.3