diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-04-12 11:29:43 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2006-04-12 11:29:43 +0000 |
commit | 5e5bd096ba38294f43a071def16f8a397e22eb79 (patch) | |
tree | b952abc858512ae7889143d0848ac70db8a1090a /src | |
parent | 5f400a68ee489a1d9206605870b8d4306236170e (diff) |
Fix offline operation.
Diffstat (limited to 'src')
-rw-r--r-- | src/xkbatom.c | 2 | ||||
-rw-r--r-- | src/xkbout.c | 6 |
2 files changed, 4 insertions, 4 deletions
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; } |