Commit 51eff3d939ccef896a548f9d50550045d140455d

Dan Nicholson 2009-04-04T08:52:17

Fix cleanup error in names allocation A conditional got reversed during the coding style cleanup.

1
2
3
4
5
6
7
8
9
10
11
12
13
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))