Thanks to Zhou Geng for reporting this bug as poc14 in the report here:
https://lists.gnu.org/archive/html/bug-gnu-pspp/2024-03/msg00015.html
static char *
show_SUBTITLE (const struct dataset *ds UNUSED)
{
- return xstrdup (output_get_subtitle ());
+ return xstrdup_if_nonnull (output_get_subtitle ());
}
static char *
static char *
show_TITLE (const struct dataset *ds UNUSED)
{
- return xstrdup (output_get_title ());
+ return xstrdup_if_nonnull (output_get_title ());
}
static bool