mruby-io/io.c (mrb_io_readchar): RSTRING_PTR(buf) never be NULL

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-12-27 16:10:04 +09:00
parent 5c36a768f7
commit 2970607267
-1
View File
@@ -1509,7 +1509,6 @@ mrb_io_readchar(mrb_state *mrb, mrb_value self)
buf = mrb_iv_get(mrb, self, MRB_IVSYM(buf));
mrb_ensure_string_type(mrb, buf);
mrb_assert(RSTRING_LEN(buf) > 0);
mrb_assert(RSTRING_PTR(buf) != NULL);
mrb_str_modify(mrb, RSTRING(buf));
#ifdef MRB_UTF8_STRING
c = RSTRING_PTR(buf)[0];