diff options
Diffstat (limited to 'ext/stringio')
-rw-r--r-- | ext/stringio/stringio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 5c2c64ca03..ebf678bac8 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -1353,7 +1353,7 @@ strio_sysread(int argc, VALUE *argv, VALUE self) static VALUE strio_read_nonblock(int argc, VALUE *argv, VALUE self) { - VALUE opts = Qnil; + VALUE opts = Qnil, val; int no_exception = 0; rb_scan_args(argc, argv, "11:", NULL, NULL, &opts); @@ -1365,7 +1365,7 @@ strio_read_nonblock(int argc, VALUE *argv, VALUE self) no_exception = 1; } - VALUE val = strio_read(argc, argv, self); + val = strio_read(argc, argv, self); if (NIL_P(val)) { if (no_exception) return Qnil; |