mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
src: fix comparison of WCHAR with nullptr
PR-URL: https://github.com/node-forward/node/pull/32 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
1 parent
be17aa4385
commit
b105f6f741
1 file changed
+1
-1
+1
-1
@@ -2418,7 +2418,7 @@ static void EnvEnumerator(const PropertyCallbackInfo<Array>& info) {
|
||||
Local<Array> envarr = Array::New(env->isolate());
|
||||
WCHAR* p = environment;
|
||||
int i = 0;
|
||||
while (*p != nullptr) {
|
||||
while (*p) {
|
||||
WCHAR *s;
|
||||
if (*p == L'=') {
|
||||
// If the key starts with '=' it is a hidden environment variable.
|
||||
|
||||
Reference in new issue
Block a user