Browse Source

Merge pull request #322 from luke-jr/bugfix_stratum_tmpwork

Bugfix: Initialize temporary stratum work
Con Kolivas 13 years ago
parent
commit
7e17af6913
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cgminer.c

+ 1 - 0
cgminer.c

@@ -4361,6 +4361,7 @@ static void *stratum_thread(void *userdata)
 		free(s);
 		if (pool->swork.clean) {
 			struct work work;
+			memset(&work, 0, sizeof(work));
 
 			/* Generate a single work item to update the current
 			 * block database */