don't enter the parsing main loop if the leftover-from-last time keyword does not have any records

This commit is contained in:
Andreas Lauser
2014-09-02 18:55:52 +02:00
parent 017e582e5a
commit 755c3311f3

View File

@@ -400,6 +400,9 @@ namespace Opm {
parserState->nextKeyword = "";
}
if (parserState->rawKeyword && parserState->rawKeyword->isFinished())
return true;
while (std::getline(*parserState->inputstream, line)) {
// remove comments. note that this is a bit too simplistic as it fails when
// having '--' in strings. _nobody_ does this, though ;)...