Commit e1d01d06356ab452b8e58ade1f239efb383479bf

ckolivas 2011-06-28T11:18:26

Minor fixes.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/cpu-miner.c b/cpu-miner.c
index 67cba36..ac00400 100644
--- a/cpu-miner.c
+++ b/cpu-miner.c
@@ -665,6 +665,7 @@ err_out:
 	workio_cmd_free(wc);
 out:
 	free(sd);
+	return NULL;
 }
 
 static bool submit_work_async(struct thr_info *thr, const struct work *work_in)
@@ -888,6 +889,7 @@ static void *gpuminer_thread(void *userdata)
 	uint32_t res[128], blank_res[128];
 	cl_kernel *kernel;
 
+	memset(res, 0, BUFFERSIZE);
 	memset(blank_res, 0, BUFFERSIZE);
 
 	size_t globalThreads[1];