From f85548f27a1958bb6c84a6917b874c537f4c0bd6 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 21 Feb 2004 07:23:59 +0000 Subject: [PATCH] Fix root cause of bug worked around by previous check-in, and remove workaround. --- src/ChangeLog | 8 ++++++++ src/compute.c | 6 ------ src/dictionary.c | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2c524f329c..704fce07e7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +Fri Feb 20 23:22:14 2004 Ben Pfaff + + * dictionary.c: (dict_create_var) Fix root cause of bug worked + around by previous change log entry. + + * compute.c: (lvalue_finalize) Remove workaround from previous + change log entry. + Fri Feb 20 14:37:41 WAST 2004 John Darrington * compute.c: Fixed a bug where the Format was not getting set for diff --git a/src/compute.c b/src/compute.c index d26bf1ed2d..aed443853d 100644 --- a/src/compute.c +++ b/src/compute.c @@ -397,15 +397,9 @@ lvalue_finalize (struct lvalue *lvalue, { compute->variable = dict_lookup_var (default_dict, lvalue->var_name); if (compute->variable == NULL) - { - struct fmt_spec input_spec = { 0,8,2 }; compute->variable = dict_create_var_assert (default_dict, lvalue->var_name, 0); - convert_fmt_ItoO (&input_spec, &compute->variable->print); - compute->variable->write = compute->variable->print; - } - compute->fv = compute->variable->fv; compute->width = compute->variable->width; diff --git a/src/dictionary.c b/src/dictionary.c index 0f7133ecf5..9b69c89844 100644 --- a/src/dictionary.c +++ b/src/dictionary.c @@ -250,6 +250,7 @@ dict_create_var (struct dictionary *d, const char *name, int width) v->print.w = v->width; v->print.d = 0; } + v->write = v->print; v->val_labs = val_labs_create (v->width); v->label = NULL; -- 2.30.2