[PATCH xserver] xkb: initialize tsyms
Giuseppe Bilotta
giuseppe.bilotta at gmail.com
Fri Nov 3 20:38:51 UTC 2017
This fixes some “Conditional jump depends on uninitialized value(s)”
errors spotted by valgrind.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
---
xkb/xkbUtils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.14.1.439.g647b9b4702
More information about the xorg-devel
mailing list