projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c38cdc5
)
Fix cleanup error in names allocation
author
Dan Nicholson
<dbn.lists@gmail.com>
Sat, 4 Apr 2009 15:52:17 +0000
(08:52 -0700)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/src/alloc.c
b/src/alloc.c
index
a1ecfa2
..
f4989b1
100644
(file)
--- 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))