Skip to content

Commit

Permalink
src: use exact return value for uv_os_getenv
Browse files Browse the repository at this point in the history
PR-URL: nodejs#49149
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
  • Loading branch information
anonrig authored and GeoffreyBooth committed Oct 1, 2023
1 parent cdaf757 commit 43428e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_credentials.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ bool SafeGetenv(const char* key,
ret = uv_os_getenv(key, *val, &init_sz);
}

if (ret >= 0) { // Env key value fetch success.
if (ret == 0) { // Env key value fetch success.
*text = *val;
return true;
}
Expand Down

0 comments on commit 43428e7

Please sign in to comment.