Fix cleanup error in names allocation A conditional got reversed during the coding style cleanup.
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))