mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
From b552e3b3fa87e3f374d603e065785734c5b36e55 Mon Sep 17 00:00:00 2001
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
Date: Mon, 28 Dec 2015 13:39:06 -0700
|
|
Subject: [PATCH 5/5] fix options_parser segfault
|
|
|
|
---
|
|
src/mongo/util/options_parser/option_section.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/mongo/util/options_parser/option_section.cpp b/src/mongo/util/options_parser/option_section.cpp
|
|
index b499025..d9f5046 100644
|
|
--- a/src/mongo/util/options_parser/option_section.cpp
|
|
+++ b/src/mongo/util/options_parser/option_section.cpp
|
|
@@ -484,7 +484,7 @@ Status OptionSection::getDefaults(std::map<Key, Value>* values) const {
|
|
std::list<OptionDescription>::const_iterator oditerator;
|
|
for (oditerator = _options.begin(); oditerator != _options.end(); oditerator++) {
|
|
if (!oditerator->_default.isEmpty()) {
|
|
- (*values)[oditerator->_dottedName] = oditerator->_default;
|
|
+ (*((values->insert(make_pair(oditerator->_dottedName, std::map<Key, Value>::mapped_type()))).first)).second = oditerator->_default;
|
|
}
|
|
}
|
|
|
|
--
|
|
2.6.4
|
|
|