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:
parent
3af8e150ad
commit
3b0ca10539
1 changed files with 2 additions and 0 deletions
2
ruby.c
2
ruby.c
|
@ -459,7 +459,9 @@ ruby_init_loadpath_safe(int safe_level)
|
||||||
p = p2;
|
p = p2;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if !VARIABLE_LIBPATH
|
||||||
*p = 0;
|
*p = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#if !VARIABLE_LIBPATH
|
#if !VARIABLE_LIBPATH
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue