output-item: Make command name part of every output_item.
[pspp] / src / output / text-item.c
index a0428acc82c44209e3c91d16e98ebb2a6a34a8c2..6b0d75f374c07bbf6701e6c45e81f2a3499ca960 100644 (file)
@@ -100,6 +100,7 @@ text_item_create_value (enum text_item_type type, struct pivot_value *value,
   struct text_item *item = xzalloc (sizeof *item);
   *item = (struct text_item) {
     .output_item = OUTPUT_ITEM_INITIALIZER (&text_item_class),
+    .output_item.command_name = xstrdup_if_nonnull (output_get_command_name ()),
     .output_item.label = label,
     .type = type,
     .text = value,