Commit 7c954c1e authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Workaround for Ubuntu 15.04 which does not value-initialize on std::make_shared.

parent e9f4d0ee
......@@ -127,6 +127,11 @@ Worker::Worker(struct ev_loop *loop, SSL_CTX *sv_ssl_ctx, SSL_CTX *cl_ssl_ctx,
dst.pattern = src.pattern;
auto shared_addr = std::make_shared<SharedDownstreamAddr>();
// TODO for some reason, clang-3.6 which comes with Ubuntu 15.10
// does not value initialize SharedDownstreamAddr above.
*shared_addr = SharedDownstreamAddr{};
shared_addr->addrs.resize(src.addrs.size());
shared_addr->proto = src.proto;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment