1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2014-12-09 01:05:18 +00:00
parent 3af8e150ad
commit 3b0ca10539

2
ruby.c
View file

@ -459,7 +459,9 @@ ruby_init_loadpath_safe(int safe_level)
p = p2;
}
#endif
#if !VARIABLE_LIBPATH
*p = 0;
#endif
}
#if !VARIABLE_LIBPATH
else {