(map_case): Create destination case instead of leaving it
[pspp-builds.git] / src / language / data-io / get.c
index 4665c6fbae60cece88904ee4ebd2ae650df9b99e..dbda3662372b9a8a3f3d016a119a7fbab84c0988 100644 (file)
@@ -1423,6 +1423,7 @@ map_case (const struct case_map *map,
 {
   size_t dst_idx;
 
+  case_create (dst, map->value_cnt);
   for (dst_idx = 0; dst_idx < map->value_cnt; dst_idx++)
     {
       int src_idx = map->map[dst_idx];