This commit is contained in:
Andy Cedilnik 2002-09-24 10:30:57 -04:00
parent e00b56dd57
commit d86d95cf2b

View File

@ -204,16 +204,12 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& argsIn)
{ {
// create a function blocker and set it up // create a function blocker and set it up
cmLoadedCommand *f = new cmLoadedCommand(); cmLoadedCommand *f = new cmLoadedCommand();
if (!initFunction)
{
this->SetError("Attempt to load command failed. "
"No init function found.");
return false;
}
(*initFunction)(&f->info); (*initFunction)(&f->info);
m_Makefile->AddCommand(f); m_Makefile->AddCommand(f);
return true; return true;
} }
this->SetError("Attempt to load command failed. "
"No init function found.");
} }
return false; return false;
} }