diff options
author | Johannes Schlüter <johannes@php.net> | 2018-02-20 23:35:57 +0100 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2018-02-20 23:35:57 +0100 |
commit | 9881cb3945a20364a4f12a618f18a07c7546ff5f (patch) | |
tree | a139fb4a2bcb37c78b32a27e8210b410140c3e0d /ext/mysqlnd/mysqlnd_wireprotocol.c | |
parent | 64ba5d4a0610908a26df06fb5a686f6d1b6fb281 (diff) | |
download | php-git-9881cb3945a20364a4f12a618f18a07c7546ff5f.tar.gz |
Fix initialisation order
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_wireprotocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } /* }}} */ |