output: Make groups contain their subitems, and get rid of spv_item.
[pspp] / src / output / spv / spv-table-look.c
index 3e5f962bd3b08be527cbe6f1f029bf1410fe9a57..75d5f97e82ab67c4b2ca2398b46805e85b8eeacc 100644 (file)
@@ -131,7 +131,7 @@ spv_table_look_decode (const struct spvsx_table_properties *in,
   struct pivot_table_look *out = pivot_table_look_new_builtin_default ();
   char *error = NULL;
 
-  out->name = in->name ? xstrdup (in->name) : NULL;
+  out->name = xstrdup_if_nonnull (in->name);
 
   const struct spvsx_general_properties *g = in->general_properties;
   out->omit_empty = g->hide_empty_rows != 0;