|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r62346 - trunk/tools/bcp
From: john_at_[hidden]
Date: 2010-05-31 11:51:55
Author: johnmaddock
Date: 2010-05-31 11:51:55 EDT (Mon, 31 May 2010)
New Revision: 62346
URL: http://svn.boost.org/trac/boost/changeset/62346
Log:
Fix bug that occurs when copying zero-byte source files.
Text files modified:
trunk/tools/bcp/fileview.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/tools/bcp/fileview.cpp
==============================================================================
--- trunk/tools/bcp/fileview.cpp (original)
+++ trunk/tools/bcp/fileview.cpp 2010-05-31 11:51:55 EDT (Mon, 31 May 2010)
@@ -73,7 +73,7 @@
// iterators:
fileview::const_iterator fileview::begin() const
{
- return &(pimpl->m_data[0]);
+ return pimpl->m_data.size() ? &(pimpl->m_data[0]) : 0;
}
fileview::const_iterator fileview::end() const
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk