summaryrefslogtreecommitdiff
path: root/ext/sockets/multicast.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sockets/multicast.c')
-rw-r--r--ext/sockets/multicast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sockets/multicast.c b/ext/sockets/multicast.c
index af7165e8e0..2ede92bc6e 100644
--- a/ext/sockets/multicast.c
+++ b/ext/sockets/multicast.c
@@ -463,7 +463,7 @@ static int _php_mcast_join_leave(
sizeof(greq));
#else
if (sock->type == AF_INET) {
- struct ip_mreq mreq = {0};
+ struct ip_mreq mreq = {{0}};
struct in_addr addr;
assert(group_len == sizeof(struct sockaddr_in));
@@ -483,7 +483,7 @@ static int _php_mcast_join_leave(
}
#if HAVE_IPV6
else if (sock->type == AF_INET6) {
- struct ipv6_mreq mreq = {0};
+ struct ipv6_mreq mreq = {{0}};
assert(group_len == sizeof(struct sockaddr_in6));