diff options
Diffstat (limited to 'ext/stringio/stringio.c')
-rw-r--r-- | ext/stringio/stringio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 8cf5113ac8..3f66fb17d2 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -1125,9 +1125,10 @@ prepare_getline_args(struct getline_arg *arg, int argc, VALUE *argv) { VALUE str, lim, opts; long limit = -1; + int respect_chomp; argc = rb_scan_args(argc, argv, "02:", &str, &lim, &opts); - int respect_chomp = argc == 0 || !NIL_P(str); + respect_chomp = argc == 0 || !NIL_P(str); switch (argc) { case 0: str = rb_rs; |