summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-28 11:27:42 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-28 11:27:42 +0000
commit745ce54b4a46da48ced66c5d90496a0746cdded8 (patch)
tree684d882a2c450ce029a8e506f8721c6ecd3a98f6 /ext/zlib/zlib.c
parent3c288b427d26d21580f515cb227335eab335ee84 (diff)
* ext/stringio/stringio.c (strio_sysread): StringIO.new.sysread didn't
raise EOFError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r--ext/zlib/zlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 80b45ad0c9..e22d988406 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -2486,7 +2486,7 @@ gzreader_gets(argc, argv, obj)
if (NIL_P(rs)) {
dst = gzfile_read_all(gz);
- if (!NIL_P(dst)) gz->lineno++;
+ if (RSTRING(dst)->len != 0) gz->lineno++;
return dst;
}