X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fpercentiles.c;h=2d779e5bea3408ac17c872ff56b0861c500f03d6;hb=8f7af0acaf8a9253242d89fcdb26e285841f7833;hp=a387d3d4c270b1685984b6758e899f98f239a5f6;hpb=7f0d18e1c856e42ef8fc910d785baace2900f7e6;p=pspp diff --git a/src/math/percentiles.c b/src/math/percentiles.c index a387d3d4c2..2d779e5bea 100644 --- a/src/math/percentiles.c +++ b/src/math/percentiles.c @@ -152,7 +152,7 @@ destroy (struct statistic *stat) struct percentile * percentile_create (double p, double W) { - struct percentile *ptl = xzalloc (sizeof (*ptl)); + struct percentile *ptl = XZALLOC (struct percentile); struct order_stats *os = &ptl->parent; struct statistic *stat = &os->parent;