X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fscatterplot.c;h=5e8d27155e72606d850d979dfec12bb91c73c1a7;hb=75a514035ccbe2df4058b486a48162b301dd51d0;hp=9c9c42a71ebf0fd06b22e3a451e4befc9e78ddaa;hpb=29917c4f5908454803e663d2ad78bca4bc35e805;p=pspp diff --git a/src/output/charts/scatterplot.c b/src/output/charts/scatterplot.c index 9c9c42a71e..5e8d27155e 100644 --- a/src/output/charts/scatterplot.c +++ b/src/output/charts/scatterplot.c @@ -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;