Fixed reading the last line of config
This commit is contained in:
+1
-1
@@ -1049,7 +1049,7 @@ std::vector<std::vector<std::string>> parse_config(const std::string& file_name)
|
||||
|
||||
std::string s;
|
||||
|
||||
while (std::getline(f, s).good()) {
|
||||
while (f.good() && std::getline(f, s)) {
|
||||
if (s.empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -14,4 +14,4 @@ param6 = value1 value2 value3
|
||||
param8#comment
|
||||
param9
|
||||
|
||||
abcdefghijklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789=0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz=://
|
||||
abcdefghijklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789=0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz=://
|
||||
Reference in New Issue
Block a user