mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/stringio] Update ext/stringio/stringio.c
1edc88587e
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
This commit is contained in:
parent
adaaf12857
commit
7e3920f0d9
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue