summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-04 23:13:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-04 23:13:18 +0900
commit5bb80b76b093130be14161bb0c8d05f6fea749f3 (patch)
tree938e973e04144fc4bbadd8be7abc95d269309e3d /win32
parent364526cd70764e3f8f9137d7782ae36d5d8fe448 (diff)
[win32] suppress false warning by mingw gcc
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 0fa3855..b64540e 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -5271,7 +5271,7 @@ static int
wrename(const WCHAR *oldpath, const WCHAR *newpath)
{
int res = 0;
- DWORD oldatts, newatts = (DWORD)-1;
+ DWORD oldatts = 0, newatts = (DWORD)-1;
DWORD oldvsn = 0, newvsn = 0, e;
e = get_attr_vsn(oldpath, &oldatts, &oldvsn);