cares: fix uninitialized variable warning
Suppress the following warning: ../../src/cares_wrap.cc: In function ‘v8::Handle<v8::Value> node::cares_wrap::SetServers(const v8::Arguments&)’: ../../src/cares_wrap.cc:1017:5: warning: ‘uv_ret.uv_err_s::code’ may be used uninitialized in this function [-Wuninitialized]
This commit is contained in:
parent
dc50f27d52
commit
70a75cd41e
@ -1012,6 +1012,9 @@ static Handle<Value> SetServers(const Arguments& args) {
|
||||
cur->family = AF_INET6;
|
||||
uv_ret = uv_inet_pton(AF_INET6, *ip, &cur->addr);
|
||||
break;
|
||||
default:
|
||||
assert(0 && "Bad address family.");
|
||||
abort();
|
||||
}
|
||||
|
||||
if (uv_ret.code != UV_OK)
|
||||
|
Loading…
x
Reference in New Issue
Block a user