mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
minor: check if there were any files given
This commit is contained in:
parent
ae3312f1cc
commit
ee964dcbc9
@ -201,7 +201,9 @@ int main(int argc, char* argv[]) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
files = params["files"].as< vector<string> >();
|
||||
if (params.count("files")) {
|
||||
files = params["files"].as< vector<string> >();
|
||||
}
|
||||
|
||||
/* This is a bit confusing, here are the rules:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user