summaryrefslogtreecommitdiff
path: root/src/node_credentials.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_credentials.cc')
-rw-r--r--src/node_credentials.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_credentials.cc b/src/node_credentials.cc
index 82f6ef0dd8..1fea2659f7 100644
--- a/src/node_credentials.cc
+++ b/src/node_credentials.cc
@@ -38,7 +38,7 @@ bool SafeGetenv(const char* key, std::string* text) {
#endif
{
- Mutex::ScopedLock lock(environ_mutex);
+ Mutex::ScopedLock lock(per_process::env_var_mutex);
if (const char* value = getenv(key)) {
*text = value;
return true;