projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix incorrectly ordered arguments to xcalloc
[pspp-builds.git]
/
src
/
math
/
covariance.c
diff --git
a/src/math/covariance.c
b/src/math/covariance.c
index aa4a4b8ac0358982dbdf13691a4c495d20d6e473..be53672d709fe5ed419d1c76361c1bb8450ea10d 100644
(file)
--- a/
src/math/covariance.c
+++ b/
src/math/covariance.c
@@
-160,8
+160,8
@@
covariance_1pass_create (size_t n_vars, const struct variable *const *vars,
cov->n_cm = (n_vars * (n_vars - 1) ) / 2;
- if (cov->n_cm > 0)
-
cov->cm = xcalloc (sizeof *cov->cm, cov->n_
cm);
+
+
cov->cm = xcalloc (cov->n_cm, sizeof *cov->
cm);
cov->categoricals = NULL;
return cov;