summaryrefslogtreecommitdiff
path: root/src/mongo/util/procparser_test.cpp
diff options
context:
space:
mode:
authorsergey.galtsev <sergey.galtsev@mongodb.com>2021-11-19 20:41:12 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-19 21:07:17 +0000
commitc6569ad1b56c1805bb46247b17d7b11cd0b111fd (patch)
tree3ba5f2361e6c15f6c1f74b60f8f8f1b01c1e6ef0 /src/mongo/util/procparser_test.cpp
parent58ef9c017192e1a951c123124f0bca38233117da (diff)
downloadmongo-c6569ad1b56c1805bb46247b17d7b11cd0b111fd.tar.gz
SERVER-61470 uninitialized variable in unit test
Diffstat (limited to 'src/mongo/util/procparser_test.cpp')
-rw-r--r--src/mongo/util/procparser_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/procparser_test.cpp b/src/mongo/util/procparser_test.cpp
index 637c7127970..04edee43380 100644
--- a/src/mongo/util/procparser_test.cpp
+++ b/src/mongo/util/procparser_test.cpp
@@ -669,7 +669,7 @@ TEST(FTDCProcDiskStats, TestLocalDiskStats) {
boost::filesystem::space_info mockGetSpace(const boost::filesystem::path& p,
boost::system::error_code& ec) {
ec = boost::system::error_code();
- boost::filesystem::space_info result;
+ auto result = boost::filesystem::space_info();
if (p.string() == "/") {
result.available = 11213234231;
result.capacity = 23432543255;