diff options
Diffstat (limited to 'ext')
-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 71b7b69f71..cd68185dc4 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 |