瀏覽代碼

Improved checking for number of arguments passed

Pavel Solodovnikov 8 年之前
父節點
當前提交
2548615630
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmAuxSourceDirectoryCommand.cxx

+ 1 - 1
Source/cmAuxSourceDirectoryCommand.cxx

@@ -18,7 +18,7 @@ class cmExecutionStatus;
 bool cmAuxSourceDirectoryCommand::InitialPass(
   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");
     return false;
   }