diff options
author | 2016-03-17 12:01:47 +1100 | |
---|---|---|
committer | 2016-03-17 13:30:09 +1100 | |
commit | f0e580e40a333fd9363e23710d440c5bfa1b5bce (patch) | |
tree | 8bfbb50834324664610dc6ec648fd38cb39c761e /src/lib/util/corefile.cpp | |
parent | 776bfad1c1f4e9a4dd5e799f9ca5e9145ca644a0 (diff) |
Clear error status on persistent streams
Diffstat (limited to 'src/lib/util/corefile.cpp')
-rw-r--r-- | src/lib/util/corefile.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/util/corefile.cpp b/src/lib/util/corefile.cpp index ec1e25340e3..5c16d886fe3 100644 --- a/src/lib/util/corefile.cpp +++ b/src/lib/util/corefile.cpp @@ -611,6 +611,7 @@ int core_text_file::puts(char const *s) int core_text_file::vprintf(util::format_argument_pack<std::ostream> const &args) { + m_printf_buffer.clear(); m_printf_buffer.reserve(1024); m_printf_buffer.seekp(0, ovectorstream::beg); util::stream_format<std::ostream, std::ostream>(m_printf_buffer, args); |