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:
Nikolai Vavilov authored and Ben Noordhuis committed 2014-10-25 01:29:55 +02:00
1 parent be17aa4385
commit b105f6f741
1 file changed
+1 -1
+1 -1
View File
@@ -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.