]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Tue, 8 Oct 2019 13:18:31 +0000 (09:18 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 8 Oct 2019 13:18:31 +0000 (09:18 -0400)
MagickCore/string.c

index 284614b5d021836b3d5c4d3d188f072a078fe6dc..4e781bc5f0bd4c59ecfa0b1c55349b5e185a3fb9 100644 (file)
@@ -2592,7 +2592,7 @@ MagickExport MagickBooleanType SubstituteString(char **string,
   {
     if (search_extent == 0)
       search_extent=strlen(search);
-    if ((*p != *search) || (strncmp(p,search,search_extent) != 0))
+    if (strncmp(p,search,search_extent) != 0)
       continue;
     /*
       We found a match.