Fix cleanup error in names allocation
authorDan Nicholson <dbn.lists@gmail.com>
Sat, 4 Apr 2009 15:52:17 +0000 (08:52 -0700)
committerDan Nicholson <dbn.lists@gmail.com>
Sat, 4 Apr 2009 15:55:23 +0000 (08:55 -0700)
A conditional got reversed during the coding style cleanup.

src/alloc.c

index a1ecfa2..f4989b1 100644 (file)
@@ -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))