SHA256
1
0
forked from pool/boost
boost/boost-no_segfault_on_dir_iteration.patch

12 lines
455 B
Diff

--- libs/filesystem/src/operations.cpp
+++ libs/filesystem/src/operations.cpp
@@ -1209,7 +1209,7 @@
const std::string & dir, std::string & target,
file_status &, file_status & )
{
- static const std::string dummy_first_name( "." );
+ const std::string dummy_first_name( "." );
if ( (handle = ::opendir( dir.c_str() )) == 0 ) return errno;
target = dummy_first_name;
std::size_t path_size;