From 97c9e6a7139e07a0761be05034fae42fcd65ba36 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 28 Mar 2008 17:10:28 +0200 Subject: [PATCH] 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 5544c51447f551dfc6df64438873a7ce64743976. Signed-off-by: Peter Hutterer --- xkb/XKBMisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xkb/XKBMisc.c b/xkb/XKBMisc.c index 6f63c2b21..a9d8b17c0 100644 --- a/xkb/XKBMisc.c +++ b/xkb/XKBMisc.c @@ -480,7 +480,7 @@ register int i; int width,nOldGroups,oldWidth,newTypes[XkbNumKbdGroups]; if ((!xkb) || (!XkbKeycodeInRange(xkb,key)) || (!xkb->map) || - (!xkb->map->types)||((groups&XkbAllGroupsMask)==0)|| + (!xkb->map->types)||(!newTypesIn)||((groups&XkbAllGroupsMask)==0)|| (nGroups>XkbNumKbdGroups)) { return BadMatch; }