summaryrefslogtreecommitdiffstats
path: root/Source/cmLoadCommandCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-24 14:30:57 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-24 14:30:57 (GMT)
commitd86d95cf2b1b8b6e7f5985c9a4074347554a2fb7 (patch)
tree8e30114945bf1e411024299c810351a456266790 /Source/cmLoadCommandCommand.cxx
parente00b56dd571d3cef11e3080f916715ede334b99f (diff)
downloadCMake-d86d95cf2b1b8b6e7f5985c9a4074347554a2fb7.zip
CMake-d86d95cf2b1b8b6e7f5985c9a4074347554a2fb7.tar.gz
CMake-d86d95cf2b1b8b6e7f5985c9a4074347554a2fb7.tar.bz2
Cleanup
Diffstat (limited to 'Source/cmLoadCommandCommand.cxx')
-rw-r--r--Source/cmLoadCommandCommand.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx
index aadae70..c01fa46 100644
--- a/Source/cmLoadCommandCommand.cxx
+++ b/Source/cmLoadCommandCommand.cxx
@@ -204,16 +204,12 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& argsIn)
{
// create a function blocker and set it up
cmLoadedCommand *f = new cmLoadedCommand();
- if (!initFunction)
- {
- this->SetError("Attempt to load command failed. "
- "No init function found.");
- return false;
- }
(*initFunction)(&f->info);
m_Makefile->AddCommand(f);
return true;
}
+ this->SetError("Attempt to load command failed. "
+ "No init function found.");
}
return false;
}