From 5609eabc6f1ee7592fcc0185cb61eaf34a67024d Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Thu, 29 Oct 2015 17:52:10 +0100 Subject: MDNR: - make MYSQLND_UPSERT_STATUS more like an object that a simple structure Still use macros to make updates simple --- ext/mysqlnd/mysqlnd_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mysqlnd/mysqlnd_auth.c') diff --git a/ext/mysqlnd/mysqlnd_auth.c b/ext/mysqlnd/mysqlnd_auth.c index 9512e12728..7a8f848f6d 100644 --- a/ext/mysqlnd/mysqlnd_auth.c +++ b/ext/mysqlnd/mysqlnd_auth.c @@ -289,7 +289,7 @@ mysqlnd_auth_change_user(MYSQLND_CONN_DATA * const conn, mnd_pefree(conn->last_message, conn->persistent); conn->last_message = NULL; } - memset(conn->upsert_status, 0, sizeof(*conn->upsert_status)); + UPSERT_STATUS_RESET(conn->upsert_status); /* set charset for old servers */ if (conn->m->get_server_version(conn) < 50123) { ret = conn->m->set_charset(conn, old_cs->name); -- cgit v1.2.1