X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Ftrimmed-mean.c;h=b643651a26aa4240e0340768b32af1c3ed37a320;hb=8f7af0acaf8a9253242d89fcdb26e285841f7833;hp=d75b539a6692cb1c1ab5e299ab6538cf6968811d;hpb=7f0d18e1c856e42ef8fc910d785baace2900f7e6;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;