Skip to content
Snippets Groups Projects
Commit a3cc59b8 authored by rswindell's avatar rswindell
Browse files

Fixed warning: missing braces around initializer [-Wmissing-braces]

  union xp_sockaddr addr = {0};
parent 23523b22
Branches
Tags
No related merge requests found
......@@ -663,7 +663,7 @@ char* DLLCALL iniSetIp6Address(str_list_t* list, const char* section, const char
,ini_style_t* style)
{
char addrstr[INET6_ADDRSTRLEN];
union xp_sockaddr addr = {0};
union xp_sockaddr addr = {{0}};
addr.in6.sin6_addr = value;
addr.in6.sin6_family = AF_INET6;
......@@ -1487,7 +1487,7 @@ static struct in6_addr parseIp6Address(const char* value)
{
struct addrinfo hints = {0};
struct addrinfo *res, *cur;
struct in6_addr ret = {0};
struct in6_addr ret = {{{0}}};
hints.ai_flags = AI_NUMERICHOST|AI_PASSIVE;
if(getaddrinfo(value, NULL, &hints, &res))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment