Call categoricals_done at start of second pass.
[pspp-builds.git] / src / math / covariance.c
index f3ef7ad4d014bfaeeda4a85da41e52c0e31800e4..7e9736291c4a32e81cad37b0a6fac7aa902f5b26 100644 (file)
@@ -348,6 +348,8 @@ covariance_accumulate_pass2 (struct covariance *cov, const struct ccase *c)
          cov->moments[i] = resize_matrix (cov->moments[i], cov->dim);
        }
 
+      categoricals_done (cov->categoricals);
+
       /* Divide the means by the number of samples */
       for (i = 0; i < cov->n_vars; ++i)
        {