File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -163,19 +163,13 @@ pub fn uncompress<'a>(
163
163
164
164
let mut stream = z_stream {
165
165
next_in : input. as_ptr ( ) as * mut u8 ,
166
- avail_in : input. len ( ) as _ ,
167
- total_in : 0 ,
168
- next_out : dest,
169
- avail_out : output. len ( ) as _ ,
170
- total_out : 0 ,
171
- msg : core:: ptr:: null_mut ( ) ,
172
- state : core:: ptr:: null_mut ( ) ,
166
+ avail_in : 0 ,
167
+
173
168
zalloc : None ,
174
169
zfree : None ,
175
170
opaque : core:: ptr:: null_mut ( ) ,
176
- data_type : 0 ,
177
- adler : 0 ,
178
- reserved : 0 ,
171
+
172
+ ..z_stream:: default ( )
179
173
} ;
180
174
181
175
let err = init ( & mut stream, config) ;
@@ -196,7 +190,7 @@ pub fn uncompress<'a>(
196
190
left -= stream. avail_out as u64 ;
197
191
}
198
192
199
- if stream. avail_out == 0 {
193
+ if stream. avail_in == 0 {
200
194
stream. avail_in = Ord :: min ( len, u32:: MAX as u64 ) as u32 ;
201
195
len -= stream. avail_in as u64 ;
202
196
}
You can’t perform that action at this time.
0 commit comments