]> granicus.if.org Git - imagemagick/commitdiff
Use memcmp() == 0 instead of !memcmp() in coders/png.c
authorglennrp <glennrp@git.imagemagick.org>
Wed, 31 Dec 2014 17:45:09 +0000 (17:45 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Wed, 31 Dec 2014 17:45:09 +0000 (17:45 +0000)
coders/png.c

index 0c4aa719d546ce7b14e5c1a53bbc4542c57a8280..cf330777a0f44ebcc08768c41688d63ea3d0600c 100644 (file)
@@ -3605,7 +3605,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
             "    Reading PNG text chunk");
 
         if (strlen(text[i].key) > 16 &&
-            !memcmp(text[i].key, "Raw profile type ",17) == 0)
+            memcmp(text[i].key, "Raw profile type ",17) == 0)
           {
             const char
               *value;