Commit 07292f73a1d9ab71c01d71150d15e4a4df56dc85

Con Kolivas 2012-07-16T17:05:08

Initialise mdplatform.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ocl.c b/ocl.c
index f4c763c..c4480af 100644
--- a/ocl.c
+++ b/ocl.c
@@ -80,7 +80,7 @@ int clDevicesNum(void) {
 	cl_uint numPlatforms;
 	cl_platform_id *platforms;
 	cl_platform_id platform = NULL;
-	unsigned int most_devices = 0, i, mdplatform;
+	unsigned int most_devices = 0, i, mdplatform = 0;
 
 	status = clGetPlatformIDs(0, NULL, &numPlatforms);
 	/* If this fails, assume no GPUs. */