Skip to content

Commit 45f1341

Browse files
committed
Merge branch 'develop' of github.com:boostorg/interprocess into develop
2 parents e3d2325 + 5443911 commit 45f1341

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/boost/interprocess/detail/file_wrapper.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ class file_wrapper
9090
//!After the call, "moved" does not represent any file.
9191
//!Does not throw
9292
file_wrapper(BOOST_RV_REF(file_wrapper) moved)
93-
: m_handle(file_handle_t(ipcdetail::invalid_file()))
93+
: m_handle(file_handle_t(ipcdetail::invalid_file()))
94+
, m_mode(read_only)
9495
{ this->swap(moved); }
9596

9697
//!Moves the ownership of "moved"'s file to *this.

0 commit comments

Comments
 (0)