cleanup: remove a dead increment
As pointed out by clang-analyzer. PR-URL: https://github.com/libuv/libuv/pull/13 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
parent
f86cd02a94
commit
f87657ee08
@ -182,10 +182,8 @@ int uv_getaddrinfo(uv_loop_t* loop,
|
||||
len += service_len;
|
||||
}
|
||||
|
||||
if (hostname) {
|
||||
if (hostname)
|
||||
req->hostname = memcpy(buf + len, hostname, hostname_len);
|
||||
len += hostname_len;
|
||||
}
|
||||
|
||||
uv__work_submit(loop,
|
||||
&req->work_req,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user