summaryrefslogtreecommitdiffhomepage
path: root/src/proc.c
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2014-03-26 11:13:42 +0900
committerMasaki Muranaka <[email protected]>2014-03-26 11:21:20 +0900
commitdcff9012e379ea89342d175ed36847aa8cc0d106 (patch)
tree11fb655db9b4fc8ad09c2fba057711f5eeab4090 /src/proc.c
parent2bf718faf86001c30032cbff152c154135577a54 (diff)
downloadmruby-dcff9012e379ea89342d175ed36847aa8cc0d106.tar.gz
mruby-dcff9012e379ea89342d175ed36847aa8cc0d106.zip
Remove redundant NULL checks.
mrb_malloc causes an exception when memory was empty.
Diffstat (limited to 'src/proc.c')
-rw-r--r--src/proc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/proc.c b/src/proc.c
index 1ae1d495e..c111e012f 100644
--- a/src/proc.c
+++ b/src/proc.c
@@ -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;