Skip to content

Commit

Permalink
src: fix comparison of WCHAR with nullptr
Browse files Browse the repository at this point in the history
PR-URL: node-forward/node#32
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
seishun authored and bnoordhuis committed Oct 24, 2014
1 parent be17aa4 commit b105f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b105f6f

Please sign in to comment.