nghttpx: Fix uninitialized errors found by coverity scan

This commit is contained in:
Tatsuhiro Tsujikawa 2016-12-18 22:16:52 +09:00
parent 02d34c8c4c
commit 0463928a1e
2 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,8 @@ void stop_ev(struct ev_loop *loop,
} // namespace } // namespace
DNSResolver::DNSResolver(struct ev_loop *loop) DNSResolver::DNSResolver(struct ev_loop *loop)
: loop_(loop), : result_{},
loop_(loop),
channel_(nullptr), channel_(nullptr),
family_(AF_UNSPEC), family_(AF_UNSPEC),
status_(DNS_STATUS_IDLE) { status_(DNS_STATUS_IDLE) {

View File

@ -175,6 +175,7 @@ HttpDownstreamConnection::HttpDownstreamConnection(
ssl_ctx_(worker->get_cl_ssl_ctx()), ssl_ctx_(worker->get_cl_ssl_ctx()),
group_(group), group_(group),
addr_(nullptr), addr_(nullptr),
raddr_(nullptr),
ioctrl_(&conn_.rlimit), ioctrl_(&conn_.rlimit),
response_htp_{0}, response_htp_{0},
initial_addr_idx_(initial_addr_idx) {} initial_addr_idx_(initial_addr_idx) {}