diff options
author | John Wiegley <johnw@newartisans.com> | 2006-02-15 20:46:07 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:22 -0400 |
commit | 6cee916e041e85788c9ff1f2e787676f842bc60e (patch) | |
tree | 32f573f2079cc5198e412afafc9cda45ca0bd601 /binary.cc | |
parent | 56b22348093bdbf5528b38519a8bfe71e2df3975 (diff) | |
download | fork-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 'binary.cc')
-rw-r--r-- | binary.cc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -489,6 +489,7 @@ bool binary_parser_t::test(std::istream& in) const read_binary_number<unsigned long>(in) == format_version) return true; + in.clear(); in.seekg(0, std::ios::beg); return false; } |