Fix cleanup error in names allocation

A conditional got reversed during the coding style cleanup.
master
Dan Nicholson 2009-04-04 08:52:17 -07:00
parent c38cdc5ded
commit 51eff3d939
1 changed files with 1 additions and 1 deletions

View 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))