From 9626b4c1adffc5b5fc301b9acce31f73ef72278d Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 22 Jul 2019 10:19:52 -0400 Subject: [PATCH] ... --- coders/ps.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/coders/ps.c b/coders/ps.c index 73aae13b5..8e991bc43 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -253,7 +253,6 @@ static void ReadPSInfo(const ImageInfo *image_info,Image *image, hex_digits[256]; unsigned long - extent, spotcolor; (void) memset(&bounds,0,sizeof(bounds)); @@ -286,7 +285,6 @@ static void ReadPSInfo(const ImageInfo *image_info,Image *image, hex_digits[(int) 'D']=13; hex_digits[(int) 'E']=14; hex_digits[(int) 'F']=15; - extent=0; priority=0; *version='\0'; spotcolor=0; @@ -412,10 +410,14 @@ static void ReadPSInfo(const ImageInfo *image_info,Image *image, unsigned char *q; + unsigned long + extent; + /* Read Photoshop profile. */ p=GetMagickByteBufferDatum(&buffer); + extent=0; count=(ssize_t) sscanf(p,PhotoshopProfile " %lu",&extent); if ((count != 1) || (extent == 0)) continue; -- 2.40.0