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
+4 -5
View File
@@ -46,11 +46,10 @@ iv_new(mrb_state *mrb)
iv_tbl *t;
t = mrb_malloc(mrb, sizeof(iv_tbl));
if (t) {
t->size = 0;
t->rootseg = NULL;
t->last_len = 0;
}
t->size = 0;
t->rootseg = NULL;
t->last_len = 0;
return t;
}