summaryrefslogtreecommitdiff
path: root/win32/file.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-07 02:03:40 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-07 02:03:40 +0000
commit3826f177903730bcd58986a95827153ab9fac258 (patch)
tree68d6a3cd5b69f4fbd8f67f17fcd742ddf2fdd658 /win32/file.c
parentadef6efcdeacbfcc0d0d5721f4abf053f03f0d29 (diff)
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
Diffstat (limited to 'win32/file.c')
-rw-r--r--win32/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/file.c b/win32/file.c
index b50c61292df..6f157d4d380 100644
--- a/win32/file.c
+++ b/win32/file.c
@@ -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 `~'");
}