Skip to content

Commit 594287a

Browse files
committed
Fix [-Wjump-misses-init] warning in MySQL new driver extension
1 parent 925679b commit 594287a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/mysqlnd/mysqlnd_protocol_frame_codec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ MYSQLND_METHOD(mysqlnd_pfc, set_client_option)(MYSQLND_PFC * const pfc, enum_mys
368368
}
369369
pfc->data->sha256_server_public_key = value? mnd_pestrdup(value, pers) : NULL;
370370
break;
371-
case MYSQLND_OPT_NET_CMD_BUFFER_SIZE:
371+
}
372+
case MYSQLND_OPT_NET_CMD_BUFFER_SIZE: {
372373
DBG_INF("MYSQLND_OPT_NET_CMD_BUFFER_SIZE");
373374
if (*(unsigned int*) value < MYSQLND_NET_CMD_BUFFER_MIN_SIZE) {
374375
DBG_RETURN(FAIL);

0 commit comments

Comments
 (0)