chiark / gitweb /
notice_processed zeroes the counts
authorIan Jackson <ian@liberator.(none)>
Wed, 26 May 2010 17:31:02 +0000 (18:31 +0100)
committerIan Jackson <ian@liberator.(none)>
Wed, 26 May 2010 17:31:02 +0000 (18:31 +0100)
statemc.c

index 27ae8614b40f344d9f674fb9e852633fb90a491b..b995957cdebdb4fd0529845fffea87d9dbe96c83 100644 (file)
--- a/statemc.c
+++ b/statemc.c
@@ -247,6 +247,10 @@ static void notice_processed(InputFile *ipf, int completed,
        RESULT_COUNTS(RCI_NOTHING,  RCI_TRIPLE_VALS)
        );
 
+  memset(ipf->counts, 0, sizeof(ipf->counts));
+  ipf->readcount_ok= ipf->readcount_blank=
+    ipf->readcount_err= ipf->count_nooffer_missing= 0;
+
   free(inprog);
   free(autodefer);