Browse Source

Merge branch 'bugfix_pcd_init' into bfgminer

Luke Dashjr 13 years ago
parent
commit
45217e6ea8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      findnonce.c

+ 3 - 1
findnonce.c

@@ -179,7 +179,9 @@ void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res)
 		return;
 		return;
 	}
 	}
 
 
-	pcd->thr = thr;
+	*pcd = (struct pc_data){
+		.thr = thr,
+	};
 	__copy_work(&pcd->work, work);
 	__copy_work(&pcd->work, work);
 	memcpy(&pcd->res, res, BUFFERSIZE);
 	memcpy(&pcd->res, res, BUFFERSIZE);