From 127c4a5ff496d0f58b04c9363de4adbf99f4b09c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 21 Apr 2012 16:54:37 +1000 Subject: [PATCH] Initialise name variable. --- driver-opencl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driver-opencl.c b/driver-opencl.c index 6fb85d92..da9a597c 100644 --- a/driver-opencl.c +++ b/driver-opencl.c @@ -1180,6 +1180,7 @@ static bool opencl_thread_prepare(struct thr_info *thr) return false; } + strcpy(name, ""); applog(LOG_INFO, "Init GPU thread %i GPU %i virtual GPU %i", i, gpu, virtual_gpu); clStates[i] = initCl(virtual_gpu, name, sizeof(name)); if (!clStates[i]) {