size_t var_count = n_sets + string_set_count (&var_names);
/* Allocate an array of var_or_mrset pointers (initially null). */
- struct var_or_mrset *var_or_mrset_array = xcalloc (
- var_count, sizeof *var_or_mrset_array);
+ struct var_or_mrset *var_or_mrset_array
+ = XCALLOC (var_count, struct var_or_mrset);
/* Fill the array. */
struct string_set added_mrsets = STRING_SET_INITIALIZER (added_mrsets);
const union value *value = val_lab_get_value (vl);
if (width)
{
- char *s = xmemdup0 (value_str (value, width), width);
+ char *s = xmemdup0 (value->s, width);
xmlTextWriterWriteAttribute (writer, _xml ("value"), _xml (s));
free (s);
}