From 477178675c90e00fb9ae9e8c7c499ef1104dd7c8 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 31 Oct 2014 13:18:22 -0700 Subject: [PATCH] Fix parseIniFile for duplicate sections --- src/ripple/core/impl/Config.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ripple/core/impl/Config.cpp b/src/ripple/core/impl/Config.cpp index 40387f2ed..9f2c73642 100644 --- a/src/ripple/core/impl/Config.cpp +++ b/src/ripple/core/impl/Config.cpp @@ -86,9 +86,8 @@ parseIniFile (std::string const& strInput, const bool bTrim) else if (strValue[0] == '[' && strValue[strValue.length () - 1] == ']') { // New Section. - strSection = strValue.substr (1, strValue.length () - 2); - secResult[strSection] = IniFileSections::mapped_type (); + secResult.emplace(strSection, IniFileSections::mapped_type{}); } else {