summaryrefslogtreecommitdiff
path: root/win32/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-03 06:25:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-03 06:25:10 +0000
commit5bcb76ebbdd17bad25c81a3261a00d15f752ad9a (patch)
tree960dc923d985b6e36ff3ded06cc81451a60c84e7 /win32/file.c
parent577d258eba99e6b2834b05a968b011dae5817899 (diff)
downloadruby-5bcb76ebbdd17bad25c81a3261a00d15f752ad9a.tar.gz
removed never used variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/file.c')
-rw-r--r--win32/file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/win32/file.c b/win32/file.c
index fe3f7c02d3..446720c2f7 100644
--- a/win32/file.c
+++ b/win32/file.c
@@ -264,7 +264,6 @@ rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_na
size_t size = 0, whome_len = 0;
size_t buffer_len = 0;
long wpath_len = 0, wdir_len = 0;
- char *fullpath = NULL;
wchar_t *wfullpath = NULL, *wpath = NULL, *wpath_pos = NULL;
wchar_t *wdir = NULL, *wdir_pos = NULL;
wchar_t *whome = NULL, *buffer = NULL, *buffer_pos = NULL;
@@ -597,9 +596,6 @@ rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_na
if (wfullpath != wfullpath_buffer)
xfree(wfullpath);
- if (fullpath)
- xfree(fullpath);
-
rb_enc_associate(result, path_encoding);
return result;
}