From 51eff3d939ccef896a548f9d50550045d140455d Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Sat, 4 Apr 2009 08:52:17 -0700 Subject: [PATCH] Fix cleanup error in names allocation A conditional got reversed during the coding style cleanup. --- src/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc.c b/src/alloc.c index a1ecfa2..f4989b1 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -143,7 +143,7 @@ XkbcAllocNames(XkbcDescPtr xkb, unsigned which, int nTotalRG, int nTotalAliases) } } - if ((which & XkbKeyNamesMask) && names->keys) { + if ((which & XkbKeyNamesMask) && !names->keys) { if ((!XkbIsLegalKeycode(xkb->min_key_code)) || (!XkbIsLegalKeycode(xkb->max_key_code)) || (xkb->max_key_code < xkb->min_key_code)) -- 2.7.4