summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-12 14:52:50 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-12 14:52:50 (GMT)
commit615ce67ad4062b7d8df5f5675fb3d85614d2cef6 (patch)
treeab74cfb52e807549937233284f613821b3f59ef6 /Source/kwsys
parent330b7c3f63917baf2eb3a11c2d3931d439b90ca1 (diff)
downloadCMake-615ce67ad4062b7d8df5f5675fb3d85614d2cef6.zip
CMake-615ce67ad4062b7d8df5f5675fb3d85614d2cef6.tar.gz
CMake-615ce67ad4062b7d8df5f5675fb3d85614d2cef6.tar.bz2
COMP: Fix build on borland.
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/SystemTools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index dbcf230..5c81ae4 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -3081,9 +3081,9 @@ void SystemTools::SplitPath(const char* p,
if(root.size() == 1)
{
#if defined(_WIN32) && !defined(__CYGWIN__)
- if(const char* h = getenv("USERPROFILE"))
+ if(const char* p = getenv("USERPROFILE"))
{
- homedir = h;
+ homedir = p;
}
else
#endif