diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-11 17:50:03 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-11 17:50:03 +0000 |
commit | d222472299a9c2ce8fc094c162f1acd2f4199403 (patch) | |
tree | 40d3edc49cd94ff99b3f43f73bcc5fcbdff820b9 /ext/stringio/stringio.c | |
parent | 9e412b83a0d3476b100ba7f46e9c22c8417c1d6c (diff) | |
download | ruby-d222472299a9c2ce8fc094c162f1acd2f4199403.tar.gz |
* ext/stringio/stringio.c (strio_init): rewind when reopened.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/stringio/stringio.c')
-rw-r--r-- | ext/stringio/stringio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 2f32d5a30d..604ea87800 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -192,6 +192,8 @@ strio_init(int argc, VALUE *argv, struct StringIO *ptr) break; } ptr->string = string; + ptr->pos = 0; + ptr->lineno = 0; } static VALUE |