From: Johannes Schlüter Date: Tue, 20 Feb 2018 22:35:57 +0000 (+0100) Subject: Fix initialisation order X-Git-Tag: php-7.3.0alpha1~325^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9881cb3945a20364a4f12a618f18a07c7546ff5f;p=php Fix initialisation order --- 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; } /* }}} */