mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +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] == ']')
|
else if (strValue[0] == '[' && strValue[strValue.length () - 1] == ']')
|
||||||
{
|
{
|
||||||
// New Section.
|
// New Section.
|
||||||
|
|
||||||
strSection = strValue.substr (1, strValue.length () - 2);
|
strSection = strValue.substr (1, strValue.length () - 2);
|
||||||
secResult[strSection] = IniFileSections::mapped_type ();
|
secResult.emplace(strSection, IniFileSections::mapped_type{});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user