From e0a01cb91446c5c9c8c23c4f133fe828d5e6405a Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 8 Feb 2019 08:03:00 +0100 Subject: [PATCH] Fixed comparison. --- coders/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/png.c b/coders/png.c index 3678ed9c0..986aaa5d3 100644 --- a/coders/png.c +++ b/coders/png.c @@ -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); -- 2.40.0