Filesystem: fix #2542, wrong close 0 descriptor in copy_file_api on unix

[SVN r50033]
This commit is contained in:
Beman Dawes
2008-11-30 02:49:13 +00:00
parent 7e43b381e4
commit 17f2e28fef

View File

@@ -1205,7 +1205,7 @@ namespace boost
{
const std::size_t buf_sz = 32768;
boost::scoped_array<char> buf( new char [buf_sz] );
int infile=0, outfile=0; // init quiets compiler warning
int infile=-1, outfile=-1; // -1 means not open
struct stat from_stat;
if ( ::stat( from_file_ph.c_str(), &from_stat ) != 0