[X2Go-Commits] [nx-libs] 75/219: xkb: initialize tsyms

git-admin at x2go.org git-admin at x2go.org
Sat Sep 28 12:10:25 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit 308824ba96b8752835e15dedf2bc0e1cd7c1ddaa
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Thu Jun 13 22:56:45 2019 +0200

    xkb: initialize tsyms
    
    Backport of this commit:
    
      commit b2167015043a458e9cf93b827b43eb5b7c552ce9
      Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
      Date:   Sat Nov 4 23:06:27 2017 +0100
    
        xkb: initialize tsyms
    
        This fixes some “Conditional jump depends on uninitialized value(s)”
        errors spotted by valgrind.
    
        Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
        Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
---
 nx-X11/programs/Xserver/xkb/xkbUtils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nx-X11/programs/Xserver/xkb/xkbUtils.c b/nx-X11/programs/Xserver/xkb/xkbUtils.c
index 21a5ce76a..a545f06eb 100644
--- a/nx-X11/programs/Xserver/xkb/xkbUtils.c
+++ b/nx-X11/programs/Xserver/xkb/xkbUtils.c
@@ -187,7 +187,7 @@ XkbDescPtr		xkb;
 unsigned		key,nG,explicit;
 KeySymsPtr		pCore;
 int			types[XkbNumKbdGroups];
-KeySym			tsyms[XkbMaxSymsPerKey],*syms;
+KeySym			tsyms[XkbMaxSymsPerKey] = {NoSymbol},*syms;
 XkbMapChangesPtr	mc;
 
     xkb= pXDev->key->xkbInfo->desc;

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list