aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-08-12 13:50:06 -0400
committerPaul Duncan <pabs@pablotron.org>2016-08-12 13:50:06 -0400
commitee3bcd0190d8a0df91186becb4c71a18639e888e (patch)
tree55005757f18a821558f4b21cc8c9af59b2643e75 /src
parent67a57042b6098a2196eba6c5a4dde399f51d1eb3 (diff)
downloadzip-crystal-ee3bcd0190d8a0df91186becb4c71a18639e888e.tar.bz2
zip-crystal-ee3bcd0190d8a0df91186becb4c71a18639e888e.zip
Extra#to_s fix
Diffstat (limited to 'src')
-rw-r--r--src/zip.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zip.cr b/src/zip.cr
index dff3014..6660fc8 100644
--- a/src/zip.cr
+++ b/src/zip.cr
@@ -446,7 +446,7 @@ module Zip
def to_s(io) : UInt16
@code.to_u16.to_io(io, LE)
@data.size.to_u16.to_io(io, LE)
- @data.to_s(io)
+ @data.to_s(io) if @data.size > 0
# return number of bytes written
bytes_needed