Merge pull request #6614 from hasumikin/fix/unitialized-variables

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-08-23 09:48:41 +09:00
committed by GitHub
+1 -1
View File
@@ -2072,7 +2072,7 @@ io_gets(mrb_state *mrb, mrb_value io)
{
mrb_value rs = mrb_nil_value();
mrb_bool rs_given = FALSE; /* newline break */
mrb_int limit;
mrb_int limit = 0;
mrb_bool limit_given = FALSE; /* no limit */
struct mrb_io *fptr = io_get_read_fptr(mrb, io);
struct mrb_io_buf *buf = fptr->buf;