Remove redundant NULL checks.

mrb_malloc causes an exception when memory was empty.
This commit is contained in:
Masaki Muranaka
2014-03-26 11:13:42 +09:00
parent 2bf718faf8
commit dcff9012e3
4 changed files with 4 additions and 31 deletions
-3
View File
@@ -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;