mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove redundant NULL checks.
mrb_malloc causes an exception when memory was empty.
This commit is contained in:
@@ -195,9 +195,6 @@ mrb_init_proc(mrb_state *mrb)
|
||||
mrb_irep *call_irep = (mrb_irep *)mrb_malloc(mrb, sizeof(mrb_irep));
|
||||
static const mrb_irep mrb_irep_zero = { 0 };
|
||||
|
||||
if (call_irep == NULL)
|
||||
return;
|
||||
|
||||
*call_irep = mrb_irep_zero;
|
||||
call_irep->flags = MRB_ISEQ_NO_FREE;
|
||||
call_irep->iseq = call_iseq;
|
||||
|
||||
Reference in New Issue
Block a user