X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdictionary.c;fp=src%2Fdata%2Fdictionary.c;h=3357994c4a4a04757b9a0117a5779482db3a7ff6;hb=a4e72105292077f6a45a431156ac841148fa3d36;hp=9ce3c46505b682b6388fc8a755b6c13628ebef31;hpb=a7ceaee3b462109f96fad61968999e118b360b67;p=pspp diff --git a/src/data/dictionary.c b/src/data/dictionary.c index 9ce3c46505..3357994c4a 100644 --- a/src/data/dictionary.c +++ b/src/data/dictionary.c @@ -259,7 +259,7 @@ dict_create (const char *encoding) .names_must_be_ids = true, .name_map = HMAP_INITIALIZER (d->name_map), .attributes = ATTRSET_INITIALIZER (d->attributes), - .split_type = SPLIT_LAYERED, + .split_type = SPLIT_NONE, .ref_cnt = 1, }; @@ -393,7 +393,7 @@ dict_set_split_vars__ (struct dictionary *d, assert (n == 0 || split != NULL); d->n_splits = n; - d->split_type = type; + d->split_type = type == SPLIT_NONE ? SPLIT_LAYERED : type; if (n > 0) { d->split = xnrealloc (d->split, n, sizeof *d->split) ; @@ -431,7 +431,7 @@ dict_set_split_vars (struct dictionary *d, void dict_clear_split_vars (struct dictionary *d) { - dict_set_split_vars (d, NULL, 0, SPLIT_LAYERED); + dict_set_split_vars (d, NULL, 0, SPLIT_NONE); } @@ -629,7 +629,7 @@ dict_clear__ (struct dictionary *d, bool skip_callbacks) invalidate_proto (d); hmap_clear (&d->name_map); d->next_value_idx = 0; - dict_set_split_vars__ (d, NULL, 0, SPLIT_LAYERED, skip_callbacks); + dict_set_split_vars__ (d, NULL, 0, SPLIT_NONE, skip_callbacks); if (skip_callbacks) {