engine_stack_top (void)
{
struct ll *head = ll_head (&engine_stack);
+ if (ll_is_empty (head))
+ return NULL;
return ll_data (head, struct output_engine, ll);
}
{
struct output_engine *e = engine_stack_top ();
+ if (e == NULL)
+ return;
+
if (item == NULL)
return;
output_get_command_name (void)
{
struct output_engine *e = engine_stack_top ();
+ if (e == NULL)
+ return NULL;
+
for (size_t i = e->n_groups; i-- > 0; )
if (e->groups[i])
return e->groups[i];
dnl PSPP - a program for statistical analysis.
-dnl Copyright (C) 2017 Free Software Foundation, Inc.
+dnl Copyright (C) 2017, 2019 Free Software Foundation, Inc.
dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
])
AT_CLEANUP
+
+AT_SETUP([EXAMINE -- Crash on unrepresentable graphs])
+AT_DATA([examine.sps], [dnl
+data list notable list /x * g *.
+begin data.
+96 1
+end data.
+
+examine x by g
+ /nototal
+ /plot = all.
+])
+dnl This bug only manifested itself on cairo based drivers.
+AT_CHECK([pspp -O format=pdf examine.sps], [1], [ignore])
+AT_CLEANUP