double y_min = DBL_MAX;
double y_max = -DBL_MAX;
struct chart *ch = chart_create ();
+ if (ch == NULL)
+ break;
+
ds_init_empty (&str);
factor_to_string (fctr, *fs, 0, &str );
- chart_write_title (ch, ds_cstr (&str));
+ chart_write_title (ch, "%s", ds_cstr (&str));
for ( i = 0 ; i < n_vars ; ++i )
{
struct chart *ch;
ch = chart_create ();
+ if (ch == NULL)
+ break;
boxplot_draw_yscale (ch, totals[i].max, totals[i].min);