mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
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 5544c51447.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
This commit is contained in:
committed by
Peter Hutterer
parent
caf1e6a1c9
commit
97c9e6a713
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user