diff options
Diffstat (limited to 'deflate.c')
-rw-r--r-- | deflate.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -52,7 +52,7 @@ | |||
52 | #include "deflate.h" | 52 | #include "deflate.h" |
53 | 53 | ||
54 | const char deflate_copyright[] = | 54 | const char deflate_copyright[] = |
55 | " deflate 1.1.2 Copyright 1995-1998 Jean-loup Gailly "; | 55 | " deflate 1.1.3 Copyright 1995-1998 Jean-loup Gailly "; |
56 | /* | 56 | /* |
57 | If you use the zlib library in a product, an acknowledgment is welcome | 57 | If you use the zlib library in a product, an acknowledgment is welcome |
58 | in the documentation of your product. If for some reason you cannot | 58 | in the documentation of your product. If for some reason you cannot |
@@ -608,11 +608,13 @@ int ZEXPORT deflateCopy (dest, source) | |||
608 | deflate_state *ss; | 608 | deflate_state *ss; |
609 | ushf *overlay; | 609 | ushf *overlay; |
610 | 610 | ||
611 | ss = source->state; | ||
612 | 611 | ||
613 | if (source == Z_NULL || dest == Z_NULL || ss == Z_NULL) { | 612 | if (source == Z_NULL || dest == Z_NULL || source->state == Z_NULL) { |
614 | return Z_STREAM_ERROR; | 613 | return Z_STREAM_ERROR; |
615 | } | 614 | } |
615 | |||
616 | ss = source->state; | ||
617 | |||
616 | *dest = *source; | 618 | *dest = *source; |
617 | 619 | ||
618 | ds = (deflate_state *) ZALLOC(dest, 1, sizeof(deflate_state)); | 620 | ds = (deflate_state *) ZALLOC(dest, 1, sizeof(deflate_state)); |