diff --git a/src/config/Tokenizer.cpp b/src/config/Tokenizer.cpp index 0ff9bdb..903cfc2 100644 --- a/src/config/Tokenizer.cpp +++ b/src/config/Tokenizer.cpp @@ -134,26 +134,16 @@ namespace config { token.type = NEWLINE; - std::streampos prev_pos; - file.get(c); - if (c != '\n') - { - file.seekg(-1, std::ios_base::cur); - } - else if (file.eof()) + do + file.get(c); + while (c == '\n' && !file.eof()); + if (file.eof()) { file.clear(); DBOUT << "cleared" <