summaryrefslogtreecommitdiffhomepage
path: root/src/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c
index f05dbda34..eeb466e0c 100644
--- a/src/state.c
+++ b/src/state.c
@@ -78,7 +78,6 @@ mrb_alloca(mrb_state *mrb, size_t size)
struct alloca_header *p;
p = (struct alloca_header*) mrb_malloc(mrb, sizeof(struct alloca_header)+size);
- if (p == NULL) return NULL;
p->next = mrb->mems;
mrb->mems = p;
return (void*)p->buf;