diff options
author | Jeremy Evans <code@jeremyevans.net> | 2022-05-29 20:56:13 -0700 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-05-30 13:01:18 +0900 |
commit | 7e3920f0d9875765fc337daf21a3b47d8c51f8cc (patch) | |
tree | 3052ed08d8d39f603a1adcae9df8480e1d2d775c /ext/stringio | |
parent | adaaf12857ce41d35b282e3fb5aa330934ce45c6 (diff) |
[ruby/stringio] Update ext/stringio/stringio.c
https://github.com/ruby/stringio/commit/1edc88587e
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Diffstat (limited to 'ext/stringio')
-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; |