[Bug #19584] Register global variable address before assignment
This commit is contained in:
parent
fb822076d7
commit
5f8ebcada0
2
ruby.c
2
ruby.c
@ -641,8 +641,8 @@ ruby_init_loadpath(void)
|
|||||||
# endif
|
# endif
|
||||||
rb_obj_hide(selfpath);
|
rb_obj_hide(selfpath);
|
||||||
OBJ_FREEZE_RAW(selfpath);
|
OBJ_FREEZE_RAW(selfpath);
|
||||||
rb_libruby_selfpath = selfpath;
|
|
||||||
rb_gc_register_address(&rb_libruby_selfpath);
|
rb_gc_register_address(&rb_libruby_selfpath);
|
||||||
|
rb_libruby_selfpath = selfpath;
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user