projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace some calls to xcalloc with XCALLOC
[pspp]
/
src
/
math
/
categoricals.c
diff --git
a/src/math/categoricals.c
b/src/math/categoricals.c
index eb28cb42bf50c5601f057c7b7930db63ff2aa9f2..4e6d8dad7ad942c633c7dc79820b93bc43d01ea6 100644
(file)
--- a/
src/math/categoricals.c
+++ b/
src/math/categoricals.c
@@
-480,7
+480,7
@@
categoricals_done (const struct categoricals *cat_)
return;
}
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)
int x = 0;
struct value_node *valnd;
HMAP_FOR_EACH (valnd, struct value_node, node, &vn->valmap)