From fabb3f66ea9251ea11cf6fd0bb717079e8111f8c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 15 Sep 2013 09:43:50 -0700 Subject: [PATCH] Skip blank lines in IniFile::GetKeys(). Fixes hrydgard/ppsspp#3783. --- file/ini_file.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/file/ini_file.cpp b/file/ini_file.cpp index 4da6e14b2c..714d569dd9 100644 --- a/file/ini_file.cpp +++ b/file/ini_file.cpp @@ -360,7 +360,8 @@ bool IniFile::GetKeys(const char* sectionName, std::vector& keys) c { std::string key; ParseLine(*liter, &key, 0, 0); - keys.push_back(key); + if (!key.empty()) + keys.push_back(key); } return true; }