From fb3bdd9b7003256b883fa41bb45c5f066cd31afa Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 20 Jan 2026 11:03:03 +0300 Subject: [PATCH] zapret-lib: gzip use local gz --- lua/zapret-lib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/zapret-lib.lua b/lua/zapret-lib.lua index 7cca4a0..8bb0aa7 100644 --- a/lua/zapret-lib.lua +++ b/lua/zapret-lib.lua @@ -1473,7 +1473,7 @@ function gunzip_file(filename, expected_ratio, read_block_size) if not expected_ratio then expected_ratio=4 end local decompressed="" - gz = gunzip_init() + local gz = gunzip_init() if not gz then error("gunzip_file: stream init error") end @@ -1512,7 +1512,7 @@ function gzip_file(filename, data, expected_ratio, level, memlevel, compress_blo if not compress_block_size then compress_block_size=16384 end if not expected_ratio then expected_ratio=2 end - gz = gzip_init(nil, level, memlevel) + local gz = gzip_init(nil, level, memlevel) if not gz then error("gzip_file: stream init error") end