always initialize local variables (close #241)
This commit is contained in:
parent
bf61f55dd3
commit
b0015be668
@ -389,7 +389,7 @@ struct IpTraits<IPv6> {
|
||||
|
||||
template<typename I>
|
||||
Addr address(const typename details::IpTraits<I>::Type *aptr) noexcept {
|
||||
Addr addr;
|
||||
Addr addr{};
|
||||
char name[DEFAULT_SIZE];
|
||||
|
||||
int err = details::IpTraits<I>::nameFunc(aptr, name, DEFAULT_SIZE);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user