fixed frozen error caseud by frozen string literal

This commit is contained in:
taichi 2020-02-05 11:30:30 +09:00
parent 609c12d1c4
commit 3bc85ccdec
1 changed files with 1 additions and 1 deletions

View File

@ -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)