summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-12-30 15:26:18 (GMT)
committerBrad King <brad.king@kitware.com>2003-12-30 15:26:18 (GMT)
commitbcd4f87414a191b49b093e6094efd885322d24b5 (patch)
tree1c43adb5ef1534129c52fd9dd6f7b840206eb160 /Source/cmSystemTools.cxx
parentae69928e69b81a08272ff5eb53a94f198d4952e1 (diff)
downloadCMake-bcd4f87414a191b49b093e6094efd885322d24b5.zip
CMake-bcd4f87414a191b49b093e6094efd885322d24b5.tar.gz
CMake-bcd4f87414a191b49b093e6094efd885322d24b5.tar.bz2
BUG: Do not call cmsysProcess_GetErrorString unless GetState returns State_Error.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 9716dc6..06ba069 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -436,7 +436,7 @@ bool cmSystemTools::RunSingleCommand(
}
}
}
- else
+ else if(cmsysProcess_GetState(cp) == cmsysProcess_State_Error)
{
std::cerr << cmsysProcess_GetErrorString(cp) << "\n";
result = false;