From: Dan Nicholson Date: Sat, 4 Apr 2009 15:52:17 +0000 (-0700) Subject: Fix cleanup error in names allocation X-Git-Tag: xkbcommon-0.2.0~934 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51eff3d939ccef896a548f9d50550045d140455d;p=platform%2Fupstream%2Flibxkbcommon.git 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))