summaryrefslogtreecommitdiff
path: root/gnucash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnucash.cc')
-rw-r--r--gnucash.cc1
1 files changed, 1 insertions, 0 deletions
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, "<?xml", 5) == 0;