Ensure ambdec parsing stops at unexpected EOF

This commit is contained in:
Chris Robinson
2018-11-10 19:38:52 -08:00
parent 3939878cc0
commit 2f42f74418
+1 -2
View File
@@ -21,8 +21,7 @@ int readline(std::istream &f, std::string &output)
while(f.good() && f.peek() == '\n')
f.ignore();
std::getline(f, output);
return !output.empty();
return std::getline(f, output) && !output.empty();
}
bool read_clipped_line(std::istream &f, std::string &buffer)