Replace numerous instances of xzalloc with XZALLOC
[pspp] / src / output / charts / np-plot.c
index b0235924f8a471468be736b0d4fdee281e8f4e69..eeffbc1fa1d5f0cf3beae266974f1f95dd89bd25 100644 (file)
@@ -31,12 +31,10 @@ static struct chart *
 make_np_plot (const struct np *np, const struct casereader *reader,
               const char *label, bool detrended)
 {
-  struct np_plot_chart *npp;
-
   if (np->n <= 1.0)
     return NULL;
 
-  npp = xzalloc (sizeof *npp);
+  struct np_plot_chart *npp = XZALLOC (struct np_plot_chart);
   chart_init (&npp->chart, &np_plot_chart_class, label);
   npp->data = casereader_clone (reader);
   npp->y_min = np->y_min;