diff options
author | Juan Gu <juan.gu@mongodb.com> | 2022-08-31 16:44:39 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-31 20:02:34 +0000 |
commit | af66a4649cef7d310b41f838091cfa19f2b887aa (patch) | |
tree | 18c40db8cceb14d1cef4d98ed9d112763ff80e57 | |
parent | f390c0e95e5038a2f4fd171bc786d86e8ff72ec2 (diff) | |
download | mongo-af66a4649cef7d310b41f838091cfa19f2b887aa.tar.gz |
SERVER-69155 fix clang_tidy bugprone-suspicious-string-compare errors
-rw-r--r-- | src/mongo/bson/bsonmisc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/bsonmisc.cpp b/src/mongo/bson/bsonmisc.cpp index 528dfaf2957..f65de3a2af7 100644 --- a/src/mongo/bson/bsonmisc.cpp +++ b/src/mongo/bson/bsonmisc.cpp @@ -36,7 +36,7 @@ bool fieldsMatch(const BSONObj& lhs, const BSONObj& rhs) { BSONObjIterator r(rhs); while (l.more() && r.more()) { - if (strcmp(l.next().fieldName(), r.next().fieldName())) { + if (strcmp(l.next().fieldName(), r.next().fieldName()) != 0) { return false; } } |