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 27ae861..b995957 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);