summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-19 15:02:56 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-19 15:02:56 (GMT)
commit0d8f8a0dc25d5b57c838e8b8537a8e463f8c7207 (patch)
treea5f95cff3de9072005dbf195921e3c3bca1b4256 /Source
parent5e21538ebdc2aef9cce9a60d67394cda40e4753d (diff)
downloadCMake-0d8f8a0dc25d5b57c838e8b8537a8e463f8c7207.zip
CMake-0d8f8a0dc25d5b57c838e8b8537a8e463f8c7207.tar.gz
CMake-0d8f8a0dc25d5b57c838e8b8537a8e463f8c7207.tar.bz2
ERR: Fix crash of cmake on broken load commands
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLoadCommandCommand.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx
index e5ef7ec..9b3d465 100644
--- a/Source/cmLoadCommandCommand.cxx
+++ b/Source/cmLoadCommandCommand.cxx
@@ -206,10 +206,11 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& args)
{
std::string err = "Attempt to load the library ";
err += fullPath + " failed.";
- if ( cmDynamicLoader::LastError() )
+ const char* error = cmDynamicLoader::LastError();
+ if ( error )
{
err += " Additional error info is:\n";
- err += cmDynamicLoader::LastError();
+ err += error;
}
this->SetError(err.c_str());
return false;