From: cristy Date: Sun, 29 Dec 2013 15:20:50 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3016 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44efc9893ca52c0b238ff52b4fe2c26a534911d1;p=imagemagick --- diff --git a/MagickCore/threshold.c b/MagickCore/threshold.c index d1e63fc0d..e7f1103bd 100644 --- a/MagickCore/threshold.c +++ b/MagickCore/threshold.c @@ -885,11 +885,11 @@ MagickExport ThresholdMap *GetThresholdMap(const char *map_id, map=GetThresholdMapFile((const char *) GetStringInfoDatum(option), GetStringInfoPath(option),map_id,exception); if (map != (ThresholdMap *) NULL) - return(map); + break; option=(const StringInfo *) GetNextValueInLinkedList(options); } options=DestroyConfigureOptions(options); - return((ThresholdMap *) NULL); + return(map); } /*