diff options
author | Pavel Solodovnikov <hellyeahdominate@gmail.com> | 2017-05-26 16:51:40 (GMT) |
---|---|---|
committer | Pavel Solodovnikov <hellyeahdominate@gmail.com> | 2017-05-26 16:51:40 (GMT) |
commit | 25486156305dc0693366c0c7e5dc6c7035ab49a9 (patch) | |
tree | 0f2b2fb94fb0df31cefcda403bedc18769195dec /Source | |
parent | 86dc86dd6c66a6d61234efcddddddf466a6597d2 (diff) | |
download | CMake-25486156305dc0693366c0c7e5dc6c7035ab49a9.zip CMake-25486156305dc0693366c0c7e5dc6c7035ab49a9.tar.gz CMake-25486156305dc0693366c0c7e5dc6c7035ab49a9.tar.bz2 |
Improved checking for number of arguments passed
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmAuxSourceDirectoryCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAuxSourceDirectoryCommand.cxx b/Source/cmAuxSourceDirectoryCommand.cxx index 8e34cb1..847a416 100644 --- a/Source/cmAuxSourceDirectoryCommand.cxx +++ b/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; } |