Skip to content

Commit

Permalink
Changed return value from "" to string_type()
Browse files Browse the repository at this point in the history
  • Loading branch information
mknaleczb authored and klemens-morgenstern committed Mar 31, 2024
1 parent 2ae279b commit f2330c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/process/detail/windows/environment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ inline auto native_environment_impl<Char>::get(const pointer_type id) -> string_
{
auto err = ::boost::winapi::GetLastError();
if (err == ::boost::winapi::ERROR_ENVVAR_NOT_FOUND_)//well, then we consider that an empty value
return "";
return string_type();
else
throw process_error(std::error_code(err, std::system_category()),
"GetEnvironmentVariable() failed");
Expand Down

0 comments on commit f2330c1

Please sign in to comment.