From 6dafb4c910a92b97d026f8984bd661e16ac85899 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 27 Apr 2018 05:20:40 +0000 Subject: [PATCH] ruby.c: moved libdir * ruby.c (ruby_init_loadpath_safe): moved libdir name inside LOAD_RELATIVE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ruby.c b/ruby.c index 2e87cf2a9d..897728ce48 100644 --- a/ruby.c +++ b/ruby.c @@ -502,6 +502,10 @@ VALUE ruby_archlibdir_path, ruby_prefix_path; void ruby_init_loadpath_safe(int safe_level) { + VALUE load_path, archlibdir = 0; + ID id_initial_load_path_mark; + const char *paths = ruby_initial_load_paths; +#if defined LOAD_RELATIVE #if !defined ENABLE_MULTIARCH # define RUBY_ARCH_PATH "" #elif defined RUBY_ARCH @@ -518,10 +522,6 @@ ruby_init_loadpath_safe(int safe_level) RUBY_ARCH_PATH; const ptrdiff_t libdir_len = (ptrdiff_t)sizeof(libdir) - rb_strlen_lit(RUBY_ARCH_PATH) - 1; - VALUE load_path, archlibdir = 0; - ID id_initial_load_path_mark; - const char *paths = ruby_initial_load_paths; -#if defined LOAD_RELATIVE char *libpath; VALUE sopath; size_t baselen;