diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:08:07 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:08:07 -0700 |
commit | bdde4e09d21edff02ea5093b7f6eccbf166b272f (patch) | |
tree | a64632a98a6bea6e5df864d6e5b6f2e51ea69c1c /compress.c | |
parent | 1c71d8b13b54f91ddec361d3053ecce26e6ff761 (diff) | |
download | zlib-bdde4e09d21edff02ea5093b7f6eccbf166b272f.tar.gz zlib-bdde4e09d21edff02ea5093b7f6eccbf166b272f.tar.bz2 zlib-bdde4e09d21edff02ea5093b7f6eccbf166b272f.zip |
zlib 0.92v0.92
Diffstat (limited to 'compress.c')
-rw-r--r-- | compress.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ | |||
3 | * For conditions of distribution and use, see copyright notice in zlib.h | 3 | * For conditions of distribution and use, see copyright notice in zlib.h |
4 | */ | 4 | */ |
5 | 5 | ||
6 | /* $Id: compress.c,v 1.5 1995/04/29 17:18:43 jloup Exp $ */ | 6 | /* $Id: compress.c,v 1.6 1995/05/03 17:27:08 jloup Exp $ */ |
7 | 7 | ||
8 | #include "zlib.h" | 8 | #include "zlib.h" |
9 | 9 | ||
@@ -45,8 +45,8 @@ int compress (dest, destLen, source, sourceLen) | |||
45 | 45 | ||
46 | err = deflate(&stream, Z_FINISH); | 46 | err = deflate(&stream, Z_FINISH); |
47 | if (err != Z_STREAM_END) { | 47 | if (err != Z_STREAM_END) { |
48 | deflateEnd(&stream); | 48 | deflateEnd(&stream); |
49 | return err == Z_OK ? Z_BUF_ERROR : err; | 49 | return err == Z_OK ? Z_BUF_ERROR : err; |
50 | } | 50 | } |
51 | *destLen = stream.total_out; | 51 | *destLen = stream.total_out; |
52 | 52 | ||