From 9f8eb9d515bade9c76f5febf32341f3ced34cb7e Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Wed, 15 Apr 2020 01:26:24 +0200 Subject: [PATCH] Fix [-Wjump-misses-init] in sockets extension --- ext/sockets/multicast.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/sockets/multicast.c b/ext/sockets/multicast.c index 9c2ede219d..663d644070 100644 --- a/ext/sockets/multicast.c +++ b/ext/sockets/multicast.c @@ -157,11 +157,11 @@ static int php_do_mcast_opt(php_socket *php_sock, int level, int optname, zval * goto mcast_req_fun; case PHP_MCAST_LEAVE_GROUP: { + mcast_req_fun = &php_mcast_leave; +mcast_req_fun: ; php_sockaddr_storage group = {0}; socklen_t glen; - mcast_req_fun = &php_mcast_leave; -mcast_req_fun: convert_to_array_ex(arg4); opt_ht = Z_ARRVAL_P(arg4); @@ -191,13 +191,13 @@ mcast_req_fun: goto mcast_sreq_fun; case PHP_MCAST_LEAVE_SOURCE_GROUP: { + mcast_sreq_fun = &php_mcast_leave_source; + mcast_sreq_fun: ; php_sockaddr_storage group = {0}, source = {0}; socklen_t glen, slen; - mcast_sreq_fun = &php_mcast_leave_source; - mcast_sreq_fun: convert_to_array_ex(arg4); opt_ht = Z_ARRVAL_P(arg4); -- 2.40.0