From 9881cb3945a20364a4f12a618f18a07c7546ff5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Schl=C3=BCter?= Date: Tue, 20 Feb 2018 23:35:57 +0100 Subject: [PATCH] Fix initialisation order --- ext/mysqlnd/mysqlnd_wireprotocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c index 72654a4e47..9d9b84b002 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.c +++ b/ext/mysqlnd/mysqlnd_wireprotocol.c @@ -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; } /* }}} */ -- 2.50.1