Browse Source

Bugfix: icarus: Initialize lret variable after work restart reentry

Luke Dashjr 13 years ago
parent
commit
677263d989
1 changed files with 3 additions and 0 deletions
  1. 3 0
      driver-icarus.c

+ 3 - 0
driver-icarus.c

@@ -618,7 +618,10 @@ static uint64_t icarus_scanhash(struct thr_info *thr, struct work *work,
 
 	if (!state->firstrun) {
 		if (state->changework)
+		{
 			state->changework = false;
+			lret = 1;
+		}
 		else
 		{
 			/* Icarus will return 4 bytes (ICARUS_READ_SIZE) nonces or nothing */