summaryrefslogtreecommitdiffstats
path: root/Source/cmWin32ProcessExecution.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-28 14:53:09 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-28 14:57:35 (GMT)
commit0bb22cfabed29e9e2ce6f1b3a551f7ea68311390 (patch)
tree8fed79885deba2989b363782ec1cd18ba0b96c04 /Source/cmWin32ProcessExecution.cxx
parent75191fa31281732ddbfd621af80bc188de9cd097 (diff)
downloadCMake-0bb22cfabed29e9e2ce6f1b3a551f7ea68311390.zip
CMake-0bb22cfabed29e9e2ce6f1b3a551f7ea68311390.tar.gz
CMake-0bb22cfabed29e9e2ce6f1b3a551f7ea68311390.tar.bz2
Avoid passing string literal to char* type
Diffstat (limited to 'Source/cmWin32ProcessExecution.cxx')
-rw-r--r--Source/cmWin32ProcessExecution.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmWin32ProcessExecution.cxx b/Source/cmWin32ProcessExecution.cxx
index d9bd26c..f37e0ff 100644
--- a/Source/cmWin32ProcessExecution.cxx
+++ b/Source/cmWin32ProcessExecution.cxx
@@ -290,7 +290,8 @@ static BOOL RealPopenCreateProcess(const char *cmdstring,
{
PROCESS_INFORMATION piProcInfo;
STARTUPINFO siStartInfo;
- char *s1=0,*s2=0, *s3 = " /c ";
+ char *s1=0,*s2=0;
+ const char *s3 = " /c ";
int i = GetEnvironmentVariable("COMSPEC",NULL,0);
if (i)
{