]> git.lizzy.rs Git - zlib.git/blobdiff - inflate.h
Don't bother computing check value after successful inflateSync().
[zlib.git] / inflate.h
index a46cce6b6d05ef994d2a386257cf09068f0aa298..98679fa9bc245e3366a7fd5799c179ebd33f3837 100644 (file)
--- a/inflate.h
+++ b/inflate.h
@@ -86,7 +86,8 @@ struct inflate_state {
     int wrap;                   /* bit 0 true for zlib, bit 1 true for gzip,
                                    bit 2 true to validate check value */
     int havedict;               /* true if dictionary provided */
-    int flags;                  /* gzip header method and flags (0 if zlib) */
+    int flags;                  /* gzip header method and flags, 0 if zlib, or
+                                   -1 if raw or no header yet */
     unsigned dmax;              /* zlib header max distance (INFLATE_STRICT) */
     unsigned long check;        /* protected copy of check value */
     unsigned long total;        /* protected copy of output count */