From 110a23d2f06565204e509b60b0bc28d5ef61a2ae Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 15 Feb 2006 20:46:07 +0000 Subject: Added in.clear() before resetting I/Os streams. Again, thanks to the list. --- gnucash.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'gnucash.cc') diff --git a/gnucash.cc b/gnucash.cc index 49e12117..02e5b477 100644 --- a/gnucash.cc +++ b/gnucash.cc @@ -345,6 +345,7 @@ bool gnucash_parser_t::test(std::istream& in) const { char buf[5]; in.read(buf, 5); + in.clear(); in.seekg(0, std::ios::beg); return std::strncmp(buf, "