From 5544c51447f551dfc6df64438873a7ce64743976 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Fri, 13 Jun 2008 22:49:47 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20"warning:=20the=20address=20of=20?= =?UTF-8?q?=E2=80=98newTypes=E2=80=99=20will=20always=20evaluate=20as=20?= =?UTF-8?q?=E2=80=98true=E2=80=99".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xkb/XKBMisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }