summaryrefslogtreecommitdiff
path: root/compat.c
diff options
context:
space:
mode:
authorEtsushi Kato <ek.kato@gmail.com>2006-11-08 16:29:16 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-11-08 16:29:16 +0200
commit337ed258a1cd3f5a16fa69ef15e98781e76f63a1 (patch)
treef5acb8303d4f396b004cc2aa889023512ee94e7f /compat.c
parentd920bbadb94684287f70e50ded2a35d65186c188 (diff)
downloadxorg-app-xkbcomp-337ed258a1cd3f5a16fa69ef15e98781e76f63a1.tar.gz
compat: avoid use of uninitialised variable (bug #8846)
si.interp.match may be unused, so just clobber it, which means we don't end up with stuff like LevelOneOnlyMask wandering in.
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat.c b/compat.c
index 97e91af..70a6da3 100644
--- a/compat.c
+++ b/compat.c
@@ -583,7 +583,7 @@ SymInterpInfo si;
si= info->dflt;
si.defs.merge= merge;
si.interp.sym= def->sym;
- si.interp.match= (si.interp.match&(~XkbSI_OpMask))|(pred&XkbSI_OpMask);
+ si.interp.match= pred & XkbSI_OpMask;
si.interp.mods= mods;
if (!HandleInterpBody(def->def,xkb,&si,info)) {
info->errorCount++;