Compacted values need to start off from 0.
[pspp-builds.git] / src / dictionary.c
index 6db18670f5ed3c352f182f901261a40355195cf9..f2ac187a1dcf1805a61096b7b2ba713800c61e15 100644 (file)
@@ -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];