projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use XCALLOC / XZALLOC macros where reasonable
[pspp]
/
src
/
language
/
stats
/
graph.c
diff --git
a/src/language/stats/graph.c
b/src/language/stats/graph.c
index 425fd241574d76227d7cb2830dd11aa832307900..2dd98e3db27bbee33f315a0753897280e8797e52 100644
(file)
--- a/
src/language/stats/graph.c
+++ b/
src/language/stats/graph.c
@@
-240,7
+240,7
@@
parse_function (struct lexer *lexer, struct graph *graph)
if (!lex_force_match (lexer, T_LPAREN))
goto error;
if (!lex_force_match (lexer, T_LPAREN))
goto error;
- graph->dep_vars = x
zalloc (sizeof (graph->dep_vars) * graph->n_dep_vars
);
+ graph->dep_vars = x
calloc (graph->n_dep_vars, sizeof (graph->dep_vars)
);
for (v = 0; v < ag_func[i].arity; ++v)
{
graph->dep_vars[v] = parse_variable (lexer, graph->dict);
for (v = 0; v < ag_func[i].arity; ++v)
{
graph->dep_vars[v] = parse_variable (lexer, graph->dict);