commit | 362713b5c8da40884aea3294923db95cbdef3c5d | [log] [tgz] |
---|---|---|
author | Dieter Baron <dillo@nih.at> | Sat Apr 27 12:23:38 2013 +0200 |
committer | Dieter Baron <dillo@nih.at> | Sat Apr 27 12:23:38 2013 +0200 |
tree | 9a084c6def33d39ae87ffd84e9d2fae653adc890 | |
parent | 346569bacdba05a5da8ca709657ea3d173f904e2 [diff] |
Initialize more members in zip_source_zip, so zip_source_stat works before zip_source_open (needed by zip_close).
diff --git a/lib/zip_source_crc.c b/lib/zip_source_crc.c index f127796..99bc965 100644 --- a/lib/zip_source_crc.c +++ b/lib/zip_source_crc.c
@@ -66,8 +66,12 @@ return NULL; } + ctx->eof = 0; ctx->validate = validate; - + ctx->e[0] = ctx->e[1] = 0; + ctx->size = 0; + ctx->crc = 0; + return zip_source_layered(za, src, crc_read, ctx); }