mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-24 21:15:58 +00:00
Fix parseIniFile for duplicate sections
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user