Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mrb_open_allocf() should keep ud in mrb_state

  • Loading branch information...
commit 147aa040501f84516d50e5665507af6063888ba1 1 parent e27cc40
@matz matz authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/state.c
View
1  src/state.c
@@ -20,6 +20,7 @@ mrb_open_allocf(mrb_allocf f, void *ud)
if (mrb == NULL) return NULL;
memset(mrb, 0, sizeof(mrb_state));
+ mrb->ud = ud;
mrb->allocf = f;
mrb->current_white_part = MRB_GC_WHITE_A;
Please sign in to comment.
Something went wrong with that request. Please try again.