summaryrefslogtreecommitdiff
path: root/qif.cc
diff options
context:
space:
mode:
Diffstat (limited to 'qif.cc')
-rw-r--r--qif.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/qif.cc b/qif.cc
index 52ed6d48..429bdcc9 100644
--- a/qif.cc
+++ b/qif.cc
@@ -30,6 +30,7 @@ bool qif_parser_t::test(std::istream& in) const
char magic[sizeof(unsigned int) + 1];
in.read(magic, sizeof(unsigned int));
magic[sizeof(unsigned int)] = '\0';
+ in.clear();
in.seekg(0, std::ios::beg);
return (std::strcmp(magic, "!Typ") == 0 ||