1
0
Fork 0

These are not pointers.

This commit is contained in:
Willi Goesgens 2014-10-27 15:52:00 +01:00
parent 2378e2cef3
commit 28f3b27922
1 changed files with 2 additions and 2 deletions

View File

@ -2258,7 +2258,7 @@ static v8::Handle<v8::Value> JS_SPrintF (v8::Arguments const& argv) {
size_t len = argv.Length(); size_t len = argv.Length();
if (len == nullptr) { if (len == 0) {
return scope.Close(v8::String::New("")); return scope.Close(v8::String::New(""));
} }
@ -3384,7 +3384,7 @@ static v8::Handle<v8::Value> JS_IsIP (const v8::Arguments& args) {
if (TRI_InetPton4(*address, NULL) == TRI_ERROR_NO_ERROR) { if (TRI_InetPton4(*address, NULL) == TRI_ERROR_NO_ERROR) {
return scope.Close(v8::Number::New(4)); return scope.Close(v8::Number::New(4));
} }
else if (TRI_InetPton6(*address, NULL) == nullptr) { else if (TRI_InetPton6(*address, NULL) == 0) {
return scope.Close(v8::Number::New(6)); return scope.Close(v8::Number::New(6));
} }
else { else {