From 3886d28a0cfa397230f778e48a845b4dea7e85ac Mon Sep 17 00:00:00 2001 From: dirk Date: Sat, 13 Aug 2016 22:42:49 +0200 Subject: [PATCH] Fixed loading of the OpenCL benchmark file. --- MagickCore/opencl.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c index 790ad7c2c..6f1699602 100644 --- a/MagickCore/opencl.c +++ b/MagickCore/opencl.c @@ -919,15 +919,9 @@ static MagickBooleanType LoadOpenCLBenchmarks(MagickCLEnv clEnv, 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); } -- 2.40.0