From c328570644e3b4dfaf840d057883a4db31976da7 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 4 Nov 2017 23:06:27 +0100 Subject: xkb: initialize tsyms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes some “Conditional jump depends on uninitialized value(s)” errors spotted by valgrind. Reviewed-by: Eric Engestrom Signed-off-by: Giuseppe Bilotta (cherry picked from commit b2167015043a458e9cf93b827b43eb5b7c552ce9) --- xkb/xkbUtils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xkb') 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; -- cgit v1.2.3