aboutsummaryrefslogtreecommitdiff
path: root/examples/zran.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/zran.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/zran.c b/examples/zran.c
index d313595..9c3e5dc 100644
--- a/examples/zran.c
+++ b/examples/zran.c
@@ -130,6 +130,10 @@ static struct deflate_index *add_point(struct deflate_index *index, int bits,
130 130
131// See comments in zran.h. 131// See comments in zran.h.
132int deflate_index_build(FILE *in, off_t span, struct deflate_index **built) { 132int deflate_index_build(FILE *in, off_t span, struct deflate_index **built) {
133 // If this returns with an error, any attempt to use the index will cleanly
134 // return an error.
135 *built = NULL;
136
133 // Set up inflation state. 137 // Set up inflation state.
134 z_stream strm = {0}; // inflate engine (gets fired up later) 138 z_stream strm = {0}; // inflate engine (gets fired up later)
135 unsigned char buf[CHUNK]; // input buffer 139 unsigned char buf[CHUNK]; // input buffer