From ec9b32aac0404b51fb969f753078cea525c8aafe Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 31 Dec 2012 09:15:17 +1100 Subject: [PATCH] Zero the best share string memory when zeroing stats. --- cgminer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cgminer.c b/cgminer.c index 41cf4e84..876abeda 100644 --- a/cgminer.c +++ b/cgminer.c @@ -3931,6 +3931,7 @@ void zero_stats(void) total_secs = 1.0; best_diff = 0; total_diff1 = 0; + memset(best_share, 0, 8); suffix_string(best_diff, best_share, 0); for (i = 0; i < total_pools; i++) {