]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 31 Jan 2012 15:30:59 +0000 (15:30 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 31 Jan 2012 15:30:59 +0000 (15:30 +0000)
MagickCore/blob.c

index 80ee5b6d0e0d791f779c336754bdd1d9605c4ca6..050683cb9bc4048b5c01d97cabcc5a88db3bbcdc 100644 (file)
@@ -2032,8 +2032,21 @@ MagickPrivate MagickBooleanType IsBlobSeekable(const Image *image)
   assert(image->signature == MagickSignature);
   if (image->debug != MagickFalse)
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
-  seekable=(image->blob->type == FileStream) ||
-    (image->blob->type == BlobStream) ? MagickTrue : MagickFalse;
+  switch (image->blob->type)
+  {
+    case FileStream:
+    case BlobStream:
+    case ZipStream:
+    {
+      seekable=MagickTrue;
+      break;
+    }
+    default:
+    {
+      seekable=MagickFalse;
+      break;
+    }
+  }
   return(seekable);
 }
 \f