Browse Source

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]
v0.11.3-release
Ben Noordhuis 12 years ago
parent
commit
70a75cd41e
  1. 3
      src/cares_wrap.cc

3
src/cares_wrap.cc

@ -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…
Cancel
Save