Fix parseIniFile for duplicate sections

This commit is contained in:
Vinnie Falco
2014-10-31 13:18:22 -07:00
parent dbdf68b248
commit 477178675c

View File

@@ -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
{