summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-09 01:05:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-09 01:05:18 +0000
commit3b0ca105391bc4ce139fc08d49a9639d2eb3398f (patch)
tree642c10eb8a5f845680672b09c59235d9a53ddf22 /ruby.c
parent3af8e150aded9d162bfd41426aaaae0279e5a653 (diff)
ruby.c: do not modify shared string
* ruby.c (ruby_init_loadpath_safe): get rid of modify shared string directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 174bfec..9014ccd 100644
--- a/ruby.c
+++ b/ruby.c
@@ -459,7 +459,9 @@ ruby_init_loadpath_safe(int safe_level)
p = p2;
}
#endif
+#if !VARIABLE_LIBPATH
*p = 0;
+#endif
}
#if !VARIABLE_LIBPATH
else {