summaryrefslogtreecommitdiff
path: root/qif.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-15 20:46:07 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:22 -0400
commit6cee916e041e85788c9ff1f2e787676f842bc60e (patch)
tree32f573f2079cc5198e412afafc9cda45ca0bd601 /qif.cc
parent56b22348093bdbf5528b38519a8bfe71e2df3975 (diff)
downloadfork-ledger-6cee916e041e85788c9ff1f2e787676f842bc60e.tar.gz
fork-ledger-6cee916e041e85788c9ff1f2e787676f842bc60e.tar.bz2
fork-ledger-6cee916e041e85788c9ff1f2e787676f842bc60e.zip
Added in.clear() before resetting I/Os streams. Again, thanks to the
list.
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 ||