summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2017-11-04 23:06:27 +0100
committerAdam Jackson <ajax@redhat.com>2017-11-06 16:49:11 -0500
commitb2167015043a458e9cf93b827b43eb5b7c552ce9 (patch)
treefe4a5e5f822db8bd672b3ceac91a52b635434971 /xkb
parent2dafa1bdafe583587431a5f6ebee6ec371c61a8d (diff)
xkb: initialize tsyms
This fixes some “Conditional jump depends on uninitialized value(s)” errors spotted by valgrind. Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbUtils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
index 25b5a364e..8975ade8d 100644
--- a/xkb/xkbUtils.c
+++ b/xkb/xkbUtils.c
@@ -222,7 +222,7 @@ XkbUpdateKeyTypesFromCore(DeviceIntPtr pXDev,
XkbDescPtr xkb;
unsigned key, nG, explicit;
int types[XkbNumKbdGroups];
- KeySym tsyms[XkbMaxSymsPerKey], *syms;
+ KeySym tsyms[XkbMaxSymsPerKey] = {NoSymbol}, *syms;
XkbMapChangesPtr mc;
xkb = pXDev->key->xkbInfo->desc;