diff options
author | Andrey Hristov <andrey@php.net> | 2015-10-29 17:52:10 +0100 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2015-11-12 16:19:16 +0100 |
commit | 5609eabc6f1ee7592fcc0185cb61eaf34a67024d (patch) | |
tree | 411ab209880c9fa654301f1260627bac456f68ad /ext/mysqlnd/mysqlnd_auth.c | |
parent | 092afe7212c65f4eb26f4f180280746f90352851 (diff) | |
download | php-git-5609eabc6f1ee7592fcc0185cb61eaf34a67024d.tar.gz |
MDNR:
- make MYSQLND_UPSERT_STATUS more like an object that a simple structure
Still use macros to make updates simple
Diffstat (limited to 'ext/mysqlnd/mysqlnd_auth.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |