summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-07 11:21:08 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-07 11:21:08 +0900
commit5f8ebcada099351acbc22db264e7cd3773c2bdc4 (patch)
treee5d449968ec66ed655f490b5d06698a659a94c80 /ruby.c
parentfb822076d79339427648cb9eacf76528f827427e (diff)
downloadruby-5f8ebcada099351acbc22db264e7cd3773c2bdc4.tar.gz
[Bug #19584] Register global variable address before assignment
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index f549e72fd0..17a9ba68ac 100644
--- a/ruby.c
+++ b/ruby.c
@@ -641,8 +641,8 @@ ruby_init_loadpath(void)
# endif
rb_obj_hide(selfpath);
OBJ_FREEZE_RAW(selfpath);
- rb_libruby_selfpath = selfpath;
rb_gc_register_address(&rb_libruby_selfpath);
+ rb_libruby_selfpath = selfpath;
# endif
#endif