From: dirk Date: Sat, 13 Aug 2016 20:42:49 +0000 (+0200) Subject: Fixed loading of the OpenCL benchmark file. X-Git-Tag: 7.0.2-8~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3886d28a0cfa397230f778e48a845b4dea7e85ac;p=imagemagick Fixed loading of the OpenCL benchmark file. --- 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); }