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-12-13 10:06:44 -0500
commitc328570644e3b4dfaf840d057883a4db31976da7 (patch)
tree6c28ace71762aac368761da34598d515e108a258 /xkb
parentc39de5f7358634eb2fea66041e3a3465e8cf6e13 (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> (cherry picked from commit b2167015043a458e9cf93b827b43eb5b7c552ce9)
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;