Page MenuHomeFreeBSD

D23765.diff
No OneTemporary

D23765.diff

Index: head/sys/kern/subr_compressor.c
===================================================================
--- head/sys/kern/subr_compressor.c
+++ head/sys/kern/subr_compressor.c
@@ -117,6 +117,13 @@
s->gz_stream.next_in = Z_NULL;
s->gz_stream.avail_in = 0;
+ if (level != Z_DEFAULT_COMPRESSION) {
+ if (level < Z_BEST_SPEED)
+ level = Z_BEST_SPEED;
+ else if (level > Z_BEST_COMPRESSION)
+ level = Z_BEST_COMPRESSION;
+ }
+
error = deflateInit2(&s->gz_stream, level, Z_DEFLATED, -MAX_WBITS,
DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);
if (error != 0)

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 8, 4:12 AM (7 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31074678
Default Alt Text
D23765.diff (566 B)

Event Timeline