Skip to content

Commit 9f8eb9d

Browse files
committed
Fix [-Wjump-misses-init] in sockets extension
1 parent 2a4c81f commit 9f8eb9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/sockets/multicast.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ static int php_do_mcast_opt(php_socket *php_sock, int level, int optname, zval *
157157
goto mcast_req_fun;
158158
case PHP_MCAST_LEAVE_GROUP:
159159
{
160+
mcast_req_fun = &php_mcast_leave;
161+
mcast_req_fun: ;
160162
php_sockaddr_storage group = {0};
161163
socklen_t glen;
162164

163-
mcast_req_fun = &php_mcast_leave;
164-
mcast_req_fun:
165165
convert_to_array_ex(arg4);
166166
opt_ht = Z_ARRVAL_P(arg4);
167167

@@ -191,13 +191,13 @@ static int php_do_mcast_opt(php_socket *php_sock, int level, int optname, zval *
191191
goto mcast_sreq_fun;
192192
case PHP_MCAST_LEAVE_SOURCE_GROUP:
193193
{
194+
mcast_sreq_fun = &php_mcast_leave_source;
195+
mcast_sreq_fun: ;
194196
php_sockaddr_storage group = {0},
195197
source = {0};
196198
socklen_t glen,
197199
slen;
198200

199-
mcast_sreq_fun = &php_mcast_leave_source;
200-
mcast_sreq_fun:
201201
convert_to_array_ex(arg4);
202202
opt_ht = Z_ARRVAL_P(arg4);
203203

0 commit comments

Comments
 (0)