aboutsummaryrefslogtreecommitdiff
path: root/src/geometry.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-21 15:21:06 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:29 +0100
commitc5b7f528a2cc1bbbf8610c47d6e5abc4636b9a5d (patch)
treed1ea5b29b965a64d2772492339d50a003d156dfd /src/geometry.c
parentd556a9c9df9f888835bc452e997971ca280ea234 (diff)
Don't forget to initialise counts to zero
Diffstat (limited to 'src/geometry.c')
-rw-r--r--src/geometry.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/geometry.c b/src/geometry.c
index e0714694..9b937b24 100644
--- a/src/geometry.c
+++ b/src/geometry.c
@@ -320,6 +320,10 @@ void update_partialities(struct image *image, const char *sym,
RefListIterator *iter;
RefList *predicted;
+ *n_expected = 0;
+ *n_found = 0;
+ *n_notfound = 0;
+
predicted = find_intersections(image, image->indexed_cell);
for ( refl = first_refl(predicted, &iter);