summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-10-10 12:37:34 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-10-10 12:37:34 (GMT)
commit7ac2d8cc226958fbe8a0c9014c2cadae69a31e06 (patch)
treee6517dda469d13b97d96a4dcd49f09bd94b54005 /win
parent2c3171b7932c069b7f8c7bbfdbdb199251e2399e (diff)
downloadtcl-7ac2d8cc226958fbe8a0c9014c2cadae69a31e06.zip
tcl-7ac2d8cc226958fbe8a0c9014c2cadae69a31e06.tar.gz
tcl-7ac2d8cc226958fbe8a0c9014c2cadae69a31e06.tar.bz2
Fix minor msvc compiler warning in tclWinFile.c
Diffstat (limited to 'win')
-rwxr-xr-xwin/tclWinFile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 73a2183..41de4a8 100755
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -1479,8 +1479,7 @@ TclpGetUserHome(
* User exists but has no home dir. Return
* "{GetProfilesDirectory}/<user>".
*/
- DWORD size = MAX_PATH;
- int i;
+ DWORD i, size = MAX_PATH;
getProfilesDirectoryProc(buf, &size);
for (i = 0; i < size; ++i){
if (buf[i] == '\\') buf[i] = '/';