]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 29 Dec 2013 15:20:50 +0000 (15:20 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 29 Dec 2013 15:20:50 +0000 (15:20 +0000)
MagickCore/threshold.c

index d1e63fc0d545ec0ca8736d940426429902c02a07..e7f1103bd77590e4750febc61c3021f2f973555c 100644 (file)
@@ -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);
 }
 \f
 /*