Fixed loading of the OpenCL benchmark file.
diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c
index 790ad7c..6f16996 100644
--- a/MagickCore/opencl.c
+++ b/MagickCore/opencl.c
@@ -919,15 +919,9 @@
return(MagickFalse);
}
- options=GetConfigureOptions(filename,exception);
- option=(const StringInfo *) GetNextValueInLinkedList(options);
- while (option != (const StringInfo *) NULL)
- {
- LoadOpenCLDeviceBenchmark(clEnv,(const char *) GetStringInfoDatum(
- option));
- option=(const StringInfo *) GetNextValueInLinkedList(options);
- }
- options=DestroyConfigureOptions(options);
+ option=ConfigureFileToStringInfo(filename,exception);
+ LoadOpenCLDeviceBenchmark(clEnv,(const char *) GetStringInfoDatum(option));
+ option=DestroyStringInfo(option);
return(MagickTrue);
}