aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/XKBAlloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/XKBAlloc.c')
-rw-r--r--nx-X11/lib/X11/XKBAlloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/XKBAlloc.c b/nx-X11/lib/X11/XKBAlloc.c
index 343c2fcdd..ed00f7ff2 100644
--- a/nx-X11/lib/X11/XKBAlloc.c
+++ b/nx-X11/lib/X11/XKBAlloc.c
@@ -132,9 +132,8 @@ XkbAllocNames(XkbDescPtr xkb, unsigned which, int nTotalRG, int nTotalAliases)
if ((which & XkbKTLevelNamesMask) && (xkb->map != NULL) &&
(xkb->map->types != NULL)) {
register int i;
- XkbKeyTypePtr type;
+ XkbKeyTypePtr type = xkb->map->types;
- type = xkb->map->types;
for (i = 0; i < xkb->map->num_types; i++, type++) {
if (type->level_names == NULL) {
type->level_names = _XkbTypedCalloc(type->num_levels, Atom);