Skip to content

Commit b903a71

Browse files
authored
src: use exact return value for uv_os_getenv
PR-URL: #49149 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Stephen Belanger <[email protected]>
1 parent fa250fd commit b903a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_credentials.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ bool SafeGetenv(const char* key,
116116
ret = uv_os_getenv(key, *val, &init_sz);
117117
}
118118

119-
if (ret >= 0) { // Env key value fetch success.
119+
if (ret == 0) { // Env key value fetch success.
120120
*text = *val;
121121
return true;
122122
}

0 commit comments

Comments
 (0)