Fix "warning: the address of ‘newTypes’ will always evaluate as ‘true’".

This commit is contained in:
Eamon Walsh 2008-06-13 22:49:47 -04:00 committed by Eamon Walsh
parent 2391c409a2
commit 5544c51447

View File

@ -473,7 +473,7 @@ register int i;
int width,nOldGroups,oldWidth,newTypes[XkbNumKbdGroups];
if ((!xkb) || (!XkbKeycodeInRange(xkb,key)) || (!xkb->map) ||
(!xkb->map->types)||(!newTypes)||((groups&XkbAllGroupsMask)==0)||
(!xkb->map->types)||((groups&XkbAllGroupsMask)==0)||
(nGroups>XkbNumKbdGroups)) {
return BadMatch;
}