]> granicus.if.org Git - imagemagick/commitdiff
Removed unnecessary memset.
authorDirk Lemstra <dirk@lemstra.org>
Fri, 28 Jun 2019 09:14:25 +0000 (11:14 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Fri, 28 Jun 2019 09:14:25 +0000 (11:14 +0200)
coders/gif.c

index 056c4d2fcf5381010e9c3407bd5c5a083d50f917..529f3a11d885ef3fb520b0cd1290cd236d499059 100644 (file)
@@ -1174,7 +1174,6 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception)
                 if (info == (unsigned char *) NULL)
                   ThrowGIFException(ResourceLimitError,
                     "MemoryAllocationFailed");
-                (void) memset(info,0,255UL*sizeof(*info));
                 reserved_length=255;
                 for (info_length=0; ; )
                 {