From: Ben Pfaff Date: Fri, 26 Mar 2004 22:22:45 +0000 (+0000) Subject: Compacted values need to start off from 0. X-Git-Tag: v0.4.0~302 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb7fdfcf1c9c380dafc165c556123094ad816825;p=pspp-builds.git Compacted values need to start off from 0. --- diff --git a/src/ChangeLog b/src/ChangeLog index aeb5cac1..ff808958 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 26 14:21:23 2004 Ben Pfaff + + * dictionary.c: (dict_compact_values) Compacted values need to + start off from 0. + Fri Mar 26 00:54:57 2004 Ben Pfaff * var-labs.c: (cmd_variable_labels) For compatibility, don't allow diff --git a/src/dictionary.c b/src/dictionary.c index 6db18670..f2ac187a 100644 --- a/src/dictionary.c +++ b/src/dictionary.c @@ -661,6 +661,7 @@ dict_compact_values (struct dictionary *d) { size_t i; + d->next_value_idx = 0; for (i = 0; i < d->var_cnt; ) { struct variable *v = d->var[i];