Replace numerous instances of xzalloc with XZALLOC
[pspp] / src / math / trimmed-mean.c
index d75b539a6692cb1c1ab5e299ab6538cf6968811d..b643651a26aa4240e0340768b32af1c3ed37a320 100644 (file)
@@ -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;