Rewrite portable file reader code and incidentally clean up code for
[pspp-builds.git] / src / box-whisker.c
index 773de80984d4405d74d6af6f4b661f5631a7d633..57930c86e9e3d739baa9273ee994d63fe77b579f 100644 (file)
@@ -212,6 +212,9 @@ boxplot_draw_yscale(struct chart *ch , double y_max, double y_min)
   double y_tick;
   double d;
 
+  if ( !ch ) 
+     return ;
+
   ch->y_max  = y_max;
   ch->y_min  = y_min;