diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-08-19 21:43:39 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-08-19 21:43:39 +0900 |
| commit | 147aa040501f84516d50e5665507af6063888ba1 (patch) | |
| tree | 47f4d1ee5c352b974bcaea7c832128e3148b0538 /src | |
| parent | e27cc402da93569cabfdda2abd1ea0f17d2c63d4 (diff) | |
| download | mruby-147aa040501f84516d50e5665507af6063888ba1.tar.gz mruby-147aa040501f84516d50e5665507af6063888ba1.zip | |
mrb_open_allocf() should keep ud in mrb_state
Diffstat (limited to 'src')
| -rw-r--r-- | src/state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index 0a4268ecd..6d34381ba 100644 --- a/src/state.c +++ b/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; |
