aboutsummaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-07 13:05:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-07 13:05:31 +0000
commit8a6441eb92cbed39be3fec74d47a0da37692344b (patch)
tree9cc232b056b565187ce26578eae6c5116ec2ddff /win32/win32.c
parente9da4fb7a6d56e9616e0b5fb1289197296d627fa (diff)
downloadruby-8a6441eb92cbed39be3fec74d47a0da37692344b.tar.gz
win32.c: use plain strdup
* win32/win32.c (insert): should use plain strdup() instead of ruby_strdup() at startup time, and plain free()ed in cmdglob(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 2a58876c4d..42ff582fef 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -90,6 +90,7 @@ static char *w32_getenv(const char *name, UINT cp);
#undef close
#undef setsockopt
#undef dup2
+#undef strdup
#if RUBY_MSVCRT_VERSION >= 140
# define _filbuf _fgetc_nolock