Fix initialisation order

This commit is contained in:
Johannes Schlüter 2018-02-20 23:35:57 +01:00
parent 64ba5d4a06
commit 9881cb3945

View file

@ -2411,8 +2411,8 @@ static void
MYSQLND_METHOD(mysqlnd_protocol, init_sha256_pk_request_response_packet)(struct st_mysqlnd_packet_sha256_pk_request_response *packet)
{
DBG_ENTER("mysqlnd_protocol::init_sha256_pk_request_response_packet");
packet->header.m = &packet_methods[PROT_SHA256_PK_REQUEST_RESPONSE_PACKET];
memset(packet, 0, sizeof(*packet));
packet->header.m = &packet_methods[PROT_SHA256_PK_REQUEST_RESPONSE_PACKET];
DBG_VOID_RETURN;
}
/* }}} */