X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=lib%2FPublicInbox%2FDSdeflate.pm;h=bf0ecd3877c79295ed99c90c0e2f750f730b6bfe;hp=b5208e4368abd63626cf617eda1bd4ba4f00fb08;hb=25fb42242320ffb55655d89268ddbb468eab9a6a;hpb=2f8d15b1170b137a0512a4f3163b236a5dcbf0b8 diff --git a/lib/PublicInbox/DSdeflate.pm b/lib/PublicInbox/DSdeflate.pm index b5208e43..bf0ecd38 100644 --- a/lib/PublicInbox/DSdeflate.pm +++ b/lib/PublicInbox/DSdeflate.pm @@ -27,10 +27,10 @@ my %IN_OPT = ( ); # global deflate context and buffer -my $zbuf = \(my $buf = ''); -my $zout; +my ($zout, $zbuf); { my $err; + $zbuf = \(my $initial = ''); # replaced by $next in zflush/write ($zout, $err) = Compress::Raw::Zlib::Deflate->new( # nnrpd (INN) and Compress::Raw::Zlib favor MemLevel=9, # the zlib C library and git use MemLevel=8 as the default