diff options
author | Daniel Stone <daniel@fooishbar.org> | 2008-03-28 17:10:28 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-11-04 16:01:07 +1030 |
commit | 97c9e6a7139e07a0761be05034fae42fcd65ba36 (patch) | |
tree | 61fa7eb842f09a7df4a23591ec9eb80f9b4cf103 /xkb/XKBMisc.c | |
parent | caf1e6a1c92a2e70de9159f93d6f5b48c202dd81 (diff) |
XKB: Fix thinko, causing warning (erroneously fixed in 5544c51447)
newTypes is a local variable which always has an address. newTypesIn,
on the other hand, might be sus.
See also 5544c51447f551dfc6df64438873a7ce64743976.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Diffstat (limited to 'xkb/XKBMisc.c')
-rw-r--r-- | xkb/XKBMisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/XKBMisc.c b/xkb/XKBMisc.c index 6f63c2b21..a9d8b17c0 100644 --- a/xkb/XKBMisc.c +++ b/xkb/XKBMisc.c @@ -480,7 +480,7 @@ register int i; int width,nOldGroups,oldWidth,newTypes[XkbNumKbdGroups]; if ((!xkb) || (!XkbKeycodeInRange(xkb,key)) || (!xkb->map) || - (!xkb->map->types)||((groups&XkbAllGroupsMask)==0)|| + (!xkb->map->types)||(!newTypesIn)||((groups&XkbAllGroupsMask)==0)|| (nGroups>XkbNumKbdGroups)) { return BadMatch; } |