diff options
author | Shaun Verch <shaun.verch@10gen.com> | 2013-09-10 17:12:17 -0400 |
---|---|---|
committer | Shaun Verch <shaun.verch@10gen.com> | 2013-10-04 16:58:54 -0400 |
commit | a2e95cdc71af9efe34b0d7cec138dcc16065a397 (patch) | |
tree | 23c79fdf86f1afec02d1fa950648395e11b60835 /src/mongo/util/ntservice.cpp | |
parent | 2a3826d6e7fc67d3698e8115c6e27412db1778b7 (diff) | |
download | mongo-a2e95cdc71af9efe34b0d7cec138dcc16065a397.tar.gz |
SERVER-8510 Remove implicit boolean integer comparisons for command line options
Diffstat (limited to 'src/mongo/util/ntservice.cpp')
-rw-r--r-- | src/mongo/util/ntservice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/ntservice.cpp b/src/mongo/util/ntservice.cpp index 075832dd20b..a38bae17bf6 100644 --- a/src/mongo/util/ntservice.cpp +++ b/src/mongo/util/ntservice.cpp @@ -71,7 +71,7 @@ namespace { int badOption = -1; for (size_t i = 0; i < disallowedOptions.size(); ++i) { - if (params.count(disallowedOptions[i]) > 0) { + if (params.count(disallowedOptions[i])) { badOption = i; break; } |