mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 12:50:04 +01:00
Fix "warning: the address of ‘newTypes’ will always evaluate as ‘true’".
This commit is contained in:
parent
2391c409a2
commit
5544c51447
1 changed files with 1 additions and 1 deletions
|
|
@ -473,7 +473,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)||(!newTypes)||((groups&XkbAllGroupsMask)==0)||
|
(!xkb->map->types)||((groups&XkbAllGroupsMask)==0)||
|
||||||
(nGroups>XkbNumKbdGroups)) {
|
(nGroups>XkbNumKbdGroups)) {
|
||||||
return BadMatch;
|
return BadMatch;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue