X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Ftrimmed-mean.c;h=b643651a26aa4240e0340768b32af1c3ed37a320;hb=fedd5a603d218f4f77f1a5d67676a9d0de489bc4;hp=d75b539a6692cb1c1ab5e299ab6538cf6968811d;hpb=96994a54e60e9c95b8bba54c2281acf7059b1203;p=pspp diff --git a/src/math/trimmed-mean.c b/src/math/trimmed-mean.c index d75b539a66..b643651a26 100644 --- a/src/math/trimmed-mean.c +++ b/src/math/trimmed-mean.c @@ -52,7 +52,7 @@ destroy (struct statistic *s) struct trimmed_mean * trimmed_mean_create (double W, double tail) { - struct trimmed_mean *tm = xzalloc (sizeof (*tm)); + struct trimmed_mean *tm = XZALLOC (struct trimmed_mean); struct order_stats *os = &tm->parent; struct statistic *stat = &os->parent;