Skip to content

Commit

Permalink
Update safe_env.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-burda authored Nov 29, 2024
1 parent 0abe8ee commit 116d712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/safe_env/safe_env.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void burda::env::detail::write(const std::string& name, const F setter, Args&&..

std::unique_lock write_lock{mtx};

if (const int ret = setter(std::forward<Args>(args)...)) [[unlikely]]
if (const int ret = setter(name, std::forward<Args>(args)...)) [[unlikely]]
{
// we can unlock, as errno is thread-safe
write_lock.unlock();
Expand Down

0 comments on commit 116d712

Please sign in to comment.