chiark / gitweb /
fix zero overwrite
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 29 May 2010 17:16:12 +0000 (18:16 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 29 May 2010 17:16:12 +0000 (18:16 +0100)
statemc.c

index dea31a9018090dfbda7a9fdebf12d57b602f4f29..dda412d067ce6993c6d3e10f718f27ba77629ed4 100644 (file)
--- a/statemc.c
+++ b/statemc.c
@@ -251,7 +251,7 @@ static void notice_processed_counts(Counts *counts, int completed,
        RESULT_COUNTS(RCI_NOTHING,  RCI_TRIPLE_VALS)
        );
 
        RESULT_COUNTS(RCI_NOTHING,  RCI_TRIPLE_VALS)
        );
 
-  memset(&counts, 0, sizeof(*counts));
+  memset(counts, 0, sizeof(*counts));
 
   free(inprog);
   free(autodefer);
 
   free(inprog);
   free(autodefer);