summaryrefslogtreecommitdiff
path: root/boost/iostreams/device/null.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/iostreams/device/null.hpp')
-rw-r--r--boost/iostreams/device/null.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/iostreams/device/null.hpp b/boost/iostreams/device/null.hpp
index 031c3e2fa2..a3943d7436 100644
--- a/boost/iostreams/device/null.hpp
+++ b/boost/iostreams/device/null.hpp
@@ -29,7 +29,7 @@ public:
public device_tag,
public closable_tag
{ };
- std::streamsize read(Ch*, std::streamsize) { return 0; }
+ std::streamsize read(Ch*, std::streamsize) { return -1; }
std::streamsize write(const Ch*, std::streamsize n) { return n; }
std::streampos seek( stream_offset, BOOST_IOS::seekdir,
BOOST_IOS::openmode =