From 5e5bd096ba38294f43a071def16f8a397e22eb79 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 12 Apr 2006 11:29:43 +0000 Subject: Fix offline operation. --- ChangeLog | 6 ++++++ src/xkbatom.c | 2 +- src/xkbout.c | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 783a2db..45901ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-04-12 Daniel Stone + + * src/xkbatom.c: + * src/xkbout.c: + Fix offline operation. + 2006-04-10 Daniel Stone * src/xkbtext.c: diff --git a/src/xkbatom.c b/src/xkbatom.c index 1a5dea0..24bdcd7 100644 --- a/src/xkbatom.c +++ b/src/xkbatom.c @@ -180,7 +180,7 @@ _XkbNameForAtom(Atom atom) NodePtr node; if (atom > lastAtom) return 0; if ((node = nodeTable[atom]) == (NodePtr)NULL) return 0; - return node->string; + return strdup(node->string); } static void diff --git a/src/xkbout.c b/src/xkbout.c index 1a2b869..53457f1 100644 --- a/src/xkbout.c +++ b/src/xkbout.c @@ -135,7 +135,7 @@ Display * dpy; char * alternate; xkb= result->xkb; - if ((!xkb)||(!xkb->names)||(!xkb->names->keys)||(!xkb->dpy)) { + if ((!xkb)||(!xkb->names)||(!xkb->names->keys)) { _XkbLibError(_XkbErrMissingNames,"XkbWriteXKBKeycodes",0); return False; } @@ -199,7 +199,7 @@ XkbKTMapEntryPtr entry; XkbDescPtr xkb; xkb= result->xkb; - if ((!xkb)||(!xkb->map)||(!xkb->map->types)||(!xkb->dpy)) { + if ((!xkb)||(!xkb->map)||(!xkb->map->types)) { _XkbLibError(_XkbErrMissingTypes,"XkbWriteXKBKeyTypes",0); return False; } @@ -314,7 +314,7 @@ XkbSymInterpretPtr interp; XkbDescPtr xkb; xkb= result->xkb; - if ((!xkb)||(!xkb->compat)||(!xkb->compat->sym_interpret)||(!xkb->dpy)) { + if ((!xkb)||(!xkb->compat)||(!xkb->compat->sym_interpret)) { _XkbLibError(_XkbErrMissingCompatMap,"XkbWriteXKBCompatMap",0); return False; } -- cgit v1.2.3