From: John Darrington <john@darrington.wattle.id.au>
Date: Sat, 24 Oct 2009 07:26:21 +0000 (+0200)
Subject: Call categoricals_done at start of second pass.
X-Git-Tag: sav-api~248^2~22
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f471c51c709556ebfe46eaeb716ad171feae972;p=pspp

Call categoricals_done at start of second pass.
---

diff --git a/src/math/covariance.c b/src/math/covariance.c
index f3ef7ad4d0..7e9736291c 100644
--- a/src/math/covariance.c
+++ b/src/math/covariance.c
@@ -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)
 	{