]> granicus.if.org Git - imagemagick/commitdiff
Fixed comparison.
authorDirk Lemstra <dirk@lemstra.org>
Fri, 8 Feb 2019 07:03:00 +0000 (08:03 +0100)
committerDirk Lemstra <dirk@lemstra.org>
Fri, 8 Feb 2019 07:03:00 +0000 (08:03 +0100)
coders/png.c

index 3678ed9c0341091e1354f1cc70e0042fa753cd5a..986aaa5d3039c501df8ad54f7882cd8e221a73da 100644 (file)
@@ -3957,7 +3957,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
 
                 (void) FormatLocaleString(key,MagickPathExtent,"%s",
                   text[i].key);
-                if (LocaleCompare(key,"version") != (char *) NULL)
+                if (LocaleCompare(key,"version") == 0)
                   (void) FormatLocaleString(key,MagickPathExtent,"png:%s",
                     text[i].key);
                 (void) SetImageProperty(image,key,value,exception);