X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcategoricals.c;h=4e6d8dad7ad942c633c7dc79820b93bc43d01ea6;hb=e5a3aaeb404e989c3ac0c532c78108601ce26624;hp=7e949fc71804a34b9881b25ba84902696936f20f;hpb=1efeddf31574c28ba41e02596e69e9669bd10268;p=pspp diff --git a/src/math/categoricals.c b/src/math/categoricals.c index 7e949fc718..4e6d8dad7a 100644 --- a/src/math/categoricals.c +++ b/src/math/categoricals.c @@ -480,7 +480,7 @@ categoricals_done (const struct categoricals *cat_) return; } - struct value_node **nodes = xcalloc (n_vals, sizeof *nodes); + struct value_node **nodes = XCALLOC (n_vals, struct value_node *); int x = 0; struct value_node *valnd; HMAP_FOR_EACH (valnd, struct value_node, node, &vn->valmap)