Changeset 6694 for branches/1.7
- Timestamp:
- Mar 26, 2018, 1:43:34 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/src/core/RpBuffer.cc
r5850 r6694 270 270 int ret=0, flush=0; 271 271 z_stream strm; 272 gz_header gzheader; 272 273 273 274 char in[CHUNK]; … … 287 288 if (ret != Z_OK) { 288 289 status.addError("error while initializing zlib stream object"); 290 return false; 291 } 292 293 gzheader.text = 0; 294 gzheader.hcrc = 0; 295 gzheader.extra = Z_NULL; 296 gzheader.name = Z_NULL; 297 gzheader.comment = Z_NULL; 298 gzheader.time = 0; 299 gzheader.os = 0xff; /* Force originating source OS to be unknown. 300 This matches what is done with the tkImg version 301 of zlib. */ 302 303 ret = deflateSetHeader( &strm, &gzheader); 304 305 if (ret != Z_OK) { 306 status.addError("error while initializing zlib gzip header object"); 289 307 return false; 290 308 }
Note: See TracChangeset
for help on using the changeset viewer.