#ifndef OUTPUT_ITEM_PROVIDER_H
#define OUTPUT_ITEM_PROVIDER_H 1
+#include "libpspp/str.h"
#include "output/output-item.h"
/* Class structure for an output item.
{ \
.class = (SRC)->class, \
.ref_cnt = 1, \
- .label = (SRC)->label ? xstrdup ((SRC)->label) : NULL, \
+ .label = xstrdup_if_nonnull ((SRC)->label), \
+ .command_name = xstrdup_if_nonnull ((SRC)->command_name), \
}
#endif /* output/output-item-provider.h */