From 3bc85ccdecfb9be015ecde2227fe9db202c7ea0d Mon Sep 17 00:00:00 2001 From: taichi Date: Wed, 5 Feb 2020 11:30:30 +0900 Subject: [PATCH] fixed frozen error caseud by frozen string literal --- lib/zip/crypto/decrypted_io.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zip/crypto/decrypted_io.rb b/lib/zip/crypto/decrypted_io.rb index ec9cab8..362e4a4 100644 --- a/lib/zip/crypto/decrypted_io.rb +++ b/lib/zip/crypto/decrypted_io.rb @@ -7,7 +7,7 @@ module Zip @decrypter = decrypter end - def read(length = nil, outbuf = '') + def read(length = nil, outbuf = +'') return ((length.nil? || length.zero?) ? "" : nil) if eof while length.nil? || (buffer.bytesize < length)