diff options
| author | flacs <tilkax@gmail.com> | 2015-06-03 01:13:43 +0200 |
|---|---|---|
| committer | flacs <tilkax@gmail.com> | 2015-06-03 01:13:43 +0200 |
| commit | 00cbc7c7c7d0f6dbd76158ad6d5a3775c9e03d90 (patch) | |
| tree | 5f51cce8d7d886755acaf196097624e36c653d05 /Source/Core/Common/IniFile.cpp | |
| parent | 64ccea4e0512535944961c91afca040005ce6153 (diff) | |
| parent | 35ca27f1cddedf537dfe3f69f0a9ca422fa6b1e0 (diff) | |
Merge pull request #2508 from comex/fix-gecko-codes
Fix bug where Gecko codes would be "enabled by default"
Diffstat (limited to 'Source/Core/Common/IniFile.cpp')
| -rw-r--r-- | Source/Core/Common/IniFile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp index 3d41ff659d..dda4f5e115 100644 --- a/Source/Core/Common/IniFile.cpp +++ b/Source/Core/Common/IniFile.cpp @@ -262,11 +262,12 @@ bool IniFile::GetKeys(const std::string& sectionName, std::vector<std::string>* // Return a list of all lines in a section bool IniFile::GetLines(const std::string& sectionName, std::vector<std::string>* lines, const bool remove_comments) const { + lines->clear(); + const Section* section = GetSection(sectionName); if (!section) return false; - lines->clear(); for (std::string line : section->lines) { line = StripSpaces(line); |
