diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2008-06-13 22:49:47 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2008-06-13 22:49:47 -0400 |
commit | 5544c51447f551dfc6df64438873a7ce64743976 (patch) | |
tree | 60a89e6aa7c829a8dd0c988fa0f99ea01b93a7f5 /xkb | |
parent | 2391c409a2840d61fed93832650c0d6c82ebebdf (diff) |
Fix "warning: the address of ‘newTypes’ will always evaluate as ‘true’".
Diffstat (limited to 'xkb')
-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 85415a4c9..eb5c38133 100644 --- a/xkb/XKBMisc.c +++ b/xkb/XKBMisc.c @@ -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; } |