Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b903a71

Browse filesBrowse files
authored
src: use exact return value for uv_os_getenv
PR-URL: #49149 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
1 parent fa250fd commit b903a71
Copy full SHA for b903a71

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎src/node_credentials.cc‎

Copy file name to clipboardExpand all lines: src/node_credentials.cc
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.