Replace some calls to xcalloc with XCALLOC
[pspp] / src / math / categoricals.c
index eb28cb42bf50c5601f057c7b7930db63ff2aa9f2..4e6d8dad7ad942c633c7dc79820b93bc43d01ea6 100644 (file)
@@ -480,7 +480,7 @@ categoricals_done (const struct categoricals *cat_)
           return;
         }
 
-      struct value_node **nodes = xcalloc (sizeof *nodes, n_vals);
+      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)