diff --git a/include/boost/process/detail/posix/environment.hpp b/include/boost/process/detail/posix/environment.hpp index 5f297ed3f..c883f0c23 100644 --- a/include/boost/process/detail/posix/environment.hpp +++ b/include/boost/process/detail/posix/environment.hpp @@ -56,6 +56,7 @@ class native_environment_impl { _buffer = _load(); _impl = _load_var(_buffer); + _env_impl = _impl.data(); } string_type get(const pointer_type id) { return get(string_type(id)); }