]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 20 Dec 2014 23:29:55 +0000 (23:29 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 20 Dec 2014 23:29:55 +0000 (23:29 +0000)
coders/hdr.c

index 2729342609b19f2f7b3197248bebedd529a44af0..9a03ecad65d1b320a37de63c3dd149da948fba59 100644 (file)
@@ -340,7 +340,10 @@ static Image *ReadHDRImage(const ImageInfo *image_info,ExceptionInfo *exception)
             case 'Y':
             case 'y':
             {
-              if (strcmp(keyword,"Y") == 0)
+              char
+                target[] = "Y";
+
+              if (strcmp(keyword,target) == 0)
                 {
                   int
                     height,