From 575ff91369ebc28a7f4ffae5271bf075e06f6658 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 30 Jan 2018 15:11:23 -0800 Subject: [PATCH] GUACAMOLE-313: Properly initialize modifier flag for all keydefs. --- src/guaclog/keydef.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/guaclog/keydef.c b/src/guaclog/keydef.c index 6b979faa..a635da35 100644 --- a/src/guaclog/keydef.c +++ b/src/guaclog/keydef.c @@ -267,6 +267,7 @@ static guaclog_keydef* guaclog_get_unicode_key(int keysym) { /* Return static key definition */ unicode_keydef.keysym = keysym; unicode_keydef.name = unicode_keydef.value = unicode_keydef_name; + unicode_keydef.modifier = false; return &unicode_keydef; } @@ -290,6 +291,7 @@ static guaclog_keydef* guaclog_copy_key(guaclog_keydef* keydef) { /* Always copy keysym and name */ copy->keysym = keydef->keysym; copy->name = strdup(keydef->name); + copy->modifier = keydef->modifier; /* Copy value only if defined */ if (keydef->value != NULL)