summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorconverse <empty>1991-05-14 22:40:05 +0000
committerconverse <empty>1991-05-14 22:40:05 +0000
commit62f2ed3bb50d6e83d90dcc4388dd3f8ca570f2c2 (patch)
treefa469ca9a86986f7de613685487bb16be66f155c
parenta012808adc52d517459d6c03feb709b4c8c276a4 (diff)
Oops! Don't parse the translation table twice, once is enough.R5beta
Introduced in rev 1.102.
-rw-r--r--xc/lib/Xt/TMparse.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/xc/lib/Xt/TMparse.c b/xc/lib/Xt/TMparse.c
index 062ba5997..4b0b02150 100644
--- a/xc/lib/Xt/TMparse.c
+++ b/xc/lib/Xt/TMparse.c
@@ -1,4 +1,4 @@
-/* $XConsortium: TMparse.c,v 1.118 91/05/11 14:55:15 converse Exp $ */
+/* $XConsortium: TMparse.c,v 1.119 91/05/11 21:04:37 converse Exp $ */
/***********************************************************
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
@@ -1857,14 +1857,7 @@ XtCvtStringToTranslationTable(dpy, args, num_args, from, to, closure_ret)
str = (String)(from->addr);
if (str == NULL)
return False;
-
- if (to->addr != NULL) {
- if (to->size < sizeof(XtTranslations)) {
- to->size = sizeof(XtTranslations);
- return False;
- }
- *(XtTranslations *)to->addr = XtParseTranslationTable(str);
- }
+
if (to->addr != NULL) {
if (to->size < sizeof(XtTranslations)) {
to->size = sizeof(XtTranslations);