From 43428e76938d4ce010e4c6fe13a9ccc7adf2a904 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sat, 30 Sep 2023 17:43:30 -0400 Subject: [PATCH] src: use exact return value for `uv_os_getenv` PR-URL: https://github.com/nodejs/node/pull/49149 Reviewed-By: Luigi Pinca Reviewed-By: Stephen Belanger --- src/node_credentials.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_credentials.cc b/src/node_credentials.cc index c1f7a4f2acbdf6..8a832b0e3efb3a 100644 --- a/src/node_credentials.cc +++ b/src/node_credentials.cc @@ -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; }