Added checks for bad input files

[SVN r21321]
This commit is contained in:
John Maddock committed 2003-12-18 11:53:47 +00:00
1 parent 39f1fb4d17
commit be01708af3
10 files changed
+10

No files matched your search

@@ -71,6 +71,7 @@ bool regex_callback(const boost::match_results<std::string::const_iterator>& wha
void load_file(std::string& s, std::istream& is)
{
s.erase();
if(is.bad()) return;
s.reserve(is.rdbuf()->in_avail());
char c;
while(is.get(c))