Replace numerous instances of xzalloc with XZALLOC
[pspp] / src / output / charts / scatterplot.c
index 9c9c42a71ebf0fd06b22e3a451e4befc9e78ddaa..5e8d27155e72606d850d979dfec12bb91c73c1a7 100644 (file)
@@ -37,9 +37,7 @@ scatterplot_create (struct casereader *reader,
                    const char *label,
                    double xmin, double xmax, double ymin, double ymax)
 {
-  struct scatterplot_chart *spc;
-
-  spc = xzalloc (sizeof *spc);
+  struct scatterplot_chart *spc = XZALLOC (struct scatterplot_chart);
   chart_init (&spc->chart, &scatterplot_chart_class, label);
   spc->data = reader;