]> granicus.if.org Git - php/commitdiff
Fix [-Wjump-misses-init] warning in MySQL new driver extension
authorGeorge Peter Banyard <girgias@php.net>
Wed, 15 Apr 2020 00:20:13 +0000 (02:20 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Sat, 18 Apr 2020 12:52:49 +0000 (14:52 +0200)
ext/mysqlnd/mysqlnd_protocol_frame_codec.c

index cdea2a007f7170025fe9309e719517d46abb7d4f..6997ed9b26374523d9efb0f3dd51cfd1d34de905 100644 (file)
@@ -368,7 +368,8 @@ MYSQLND_METHOD(mysqlnd_pfc, set_client_option)(MYSQLND_PFC * const pfc, enum_mys
                        }
                        pfc->data->sha256_server_public_key = value? mnd_pestrdup(value, pers) : NULL;
                        break;
-               case MYSQLND_OPT_NET_CMD_BUFFER_SIZE:
+               }
+               case MYSQLND_OPT_NET_CMD_BUFFER_SIZE: {
                        DBG_INF("MYSQLND_OPT_NET_CMD_BUFFER_SIZE");
                        if (*(unsigned int*) value < MYSQLND_NET_CMD_BUFFER_MIN_SIZE) {
                                DBG_RETURN(FAIL);