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:
parent
caf1e6a1c9
commit
97c9e6a713
|
@ -480,7 +480,7 @@ register int i;
|
||||||
int width,nOldGroups,oldWidth,newTypes[XkbNumKbdGroups];
|
int width,nOldGroups,oldWidth,newTypes[XkbNumKbdGroups];
|
||||||
|
|
||||||
if ((!xkb) || (!XkbKeycodeInRange(xkb,key)) || (!xkb->map) ||
|
if ((!xkb) || (!XkbKeycodeInRange(xkb,key)) || (!xkb->map) ||
|
||||||
(!xkb->map->types)||((groups&XkbAllGroupsMask)==0)||
|
(!xkb->map->types)||(!newTypesIn)||((groups&XkbAllGroupsMask)==0)||
|
||||||
(nGroups>XkbNumKbdGroups)) {
|
(nGroups>XkbNumKbdGroups)) {
|
||||||
return BadMatch;
|
return BadMatch;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user