Check the return value from `mrb_get_datatype()`; fix #4009
The return value (void*) may be NULL. Avoid using `mrb_get_datatype()` directly and use `io_get_open_fptr()` instead.
Showing
Please register or sign in to comment
The return value (void*) may be NULL. Avoid using `mrb_get_datatype()` directly and use `io_get_open_fptr()` instead.