diff --git a/src/shrpx_config.cc b/src/shrpx_config.cc index 8e3dec1c..73bdf71a 100644 --- a/src/shrpx_config.cc +++ b/src/shrpx_config.cc @@ -2065,7 +2065,7 @@ int parse_config(const char *opt, const char *optarg, return -1; } - AltSvc altsvc; + AltSvc altsvc{}; altsvc.protocol_id = std::move(tokens[0]); diff --git a/src/shrpx_config.h b/src/shrpx_config.h index f849fc39..ea442556 100644 --- a/src/shrpx_config.h +++ b/src/shrpx_config.h @@ -256,8 +256,6 @@ enum shrpx_forwarded_node_type { }; struct AltSvc { - AltSvc() : port(0) {} - std::string protocol_id, host, origin, service; uint16_t port;