Browse Source

Merge commit '64ceb78' into bfgminer

Luke Dashjr 12 years ago
parent
commit
1ee7a44a6b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-icarus.c

+ 1 - 1
driver-icarus.c

@@ -811,7 +811,7 @@ struct work *icarus_process_worknonce(struct icarus_state *state, uint32_t *nonc
 	*nonce = be32toh(*nonce);
 	if (test_nonce(state->last_work, *nonce, false))
 		return state->last_work;
-	if (test_nonce(state->last2_work, *nonce, false))
+	if (likely(state->last2_work && test_nonce(state->last2_work, *nonce, false)))
 		return state->last2_work;
 	return NULL;
 }