commit dcfb7bbf3479341307b7f219decfa6acab0d3e37 parent 0c8559e47e28462e087102babc34257c9b1aa30f Author: nsz <nszabolcs@gmail.com> Date: Sun, 16 Aug 2009 15:26:55 +0200 deflate fix empty input case Diffstat:
deflate.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/deflate.c b/deflate.c @@ -677,6 +677,7 @@ int deflate(FlateStream *stream) { if (!s) return stream->err = "no mem.", FlateErr; s->state = FlateOut; + s->src = s->srcend = 0; } if (stream->nin) { s->src = stream->in;