From 7c954c1ea7b8c0240bc7217907e86816826dd5d6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 23 Mar 2016 01:32:17 +0900 Subject: [PATCH] nghttpx: Workaround for Ubuntu 15.04 which does not value-initialize on std::make_shared. --- src/shrpx_worker.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/shrpx_worker.cc b/src/shrpx_worker.cc index 3b15c358..b93b5819 100644 --- a/src/shrpx_worker.cc +++ b/src/shrpx_worker.cc @@ -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(); + + // 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;