Skip to content

Commit b105f6f

Browse files
seishunbnoordhuis
authored andcommitted
src: fix comparison of WCHAR with nullptr
PR-URL: node-forward/node#32 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent be17aa4 commit b105f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2418,7 +2418,7 @@ static void EnvEnumerator(const PropertyCallbackInfo<Array>& info) {
24182418
Local<Array> envarr = Array::New(env->isolate());
24192419
WCHAR* p = environment;
24202420
int i = 0;
2421-
while (*p != nullptr) {
2421+
while (*p) {
24222422
WCHAR *s;
24232423
if (*p == L'=') {
24242424
// If the key starts with '=' it is a hidden environment variable.

0 commit comments

Comments
 (0)