Andy Cedilnik %!s(int64=23) %!d(string=hai) anos
pai
achega
d86d95cf2b
Modificáronse 1 ficheiros con 2 adicións e 6 borrados
  1. 2 6
      Source/cmLoadCommandCommand.cxx

+ 2 - 6
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;
 }