From 471daecb5f9ab39d2cc3820525d1904d03c5dc0c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 16 Jul 2012 17:05:08 +1000 Subject: [PATCH] Initialise mdplatform. --- ocl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocl.c b/ocl.c index 16f23f0a..5dcced71 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. */