diff options
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 9fade90742..7838c51aa2 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -269,6 +269,8 @@ strio_init(argc, argv, ptr) break; } ptr->string = string; + ptr->pos = 0; + ptr->lineno = 0; } static VALUE |