Sfoglia il codice sorgente

Improved checking for number of arguments passed

Pavel Solodovnikov 8 anni fa
parent
commit
2548615630
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Source/cmAuxSourceDirectoryCommand.cxx

+ 1 - 1
Source/cmAuxSourceDirectoryCommand.cxx

@@ -18,7 +18,7 @@ class cmExecutionStatus;
 bool cmAuxSourceDirectoryCommand::InitialPass(
 bool cmAuxSourceDirectoryCommand::InitialPass(
   std::vector<std::string> const& args, cmExecutionStatus&)
   std::vector<std::string> const& args, cmExecutionStatus&)
 {
 {
-  if (args.size() < 2 || args.size() > 2) {
+  if (args.size() != 2) {
     this->SetError("called with incorrect number of arguments");
     this->SetError("called with incorrect number of arguments");
     return false;
     return false;
   }
   }