Commit d557f977 authored by dearblue's avatar dearblue

Remove pointer check after `mrb_malloc()`

parent 4d8ff2fb
...@@ -87,7 +87,6 @@ iv_put(mrb_state *mrb, iv_tbl *t, mrb_sym sym, mrb_value val) ...@@ -87,7 +87,6 @@ iv_put(mrb_state *mrb, iv_tbl *t, mrb_sym sym, mrb_value val)
} }
seg = (segment*)mrb_malloc(mrb, sizeof(segment)); seg = (segment*)mrb_malloc(mrb, sizeof(segment));
if (!seg) return;
seg->next = NULL; seg->next = NULL;
seg->key[0] = sym; seg->key[0] = sym;
seg->val[0] = val; seg->val[0] = val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment