summaryrefslogtreecommitdiff
path: root/binary.cc
diff options
context:
space:
mode:
Diffstat (limited to 'binary.cc')
-rw-r--r--binary.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/binary.cc b/binary.cc
index 367e4e75..4953cf7e 100644
--- a/binary.cc
+++ b/binary.cc
@@ -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;
}