summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/expression_parser.cpp')
-rw-r--r--src/mongo/db/matcher/expression_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_parser.cpp b/src/mongo/db/matcher/expression_parser.cpp
index c249f28a4be..fd6b8802524 100644
--- a/src/mongo/db/matcher/expression_parser.cpp
+++ b/src/mongo/db/matcher/expression_parser.cpp
@@ -804,7 +804,7 @@ StatusWithMatchExpression MatchExpressionParser::_parseAll(const char* name,
}
if (myAnd->numChildren() == 0) {
- return {stdx::make_unique<FalseMatchExpression>()};
+ return {stdx::make_unique<FalseMatchExpression>(name)};
}
return {std::move(myAnd)};