mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
const pointer is not able to be free.
* win32/file.c (rb_default_home_dir): should not be marked as const. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
adef6efcde
commit
3826f17790
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ append_wstr(VALUE dst, const WCHAR *ws, ssize_t len, UINT cp, rb_encoding *enc)
|
|||
VALUE
|
||||
rb_default_home_dir(VALUE result)
|
||||
{
|
||||
const WCHAR *dir = rb_w32_home_dir();
|
||||
WCHAR *dir = rb_w32_home_dir();
|
||||
if (!dir) {
|
||||
rb_raise(rb_eArgError, "couldn't find HOME environment -- expanding `~'");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue