diff options
Diffstat (limited to 'sql/sql_audit.h')
-rw-r--r-- | sql/sql_audit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_audit.h b/sql/sql_audit.h index 5b6962b9ecb..aad868dc1ab 100644 --- a/sql/sql_audit.h +++ b/sql/sql_audit.h @@ -40,7 +40,7 @@ static inline uint make_user_name(THD *thd, char *buf) { Security_context *sctx= thd->security_ctx; return strxnmov(buf, MAX_USER_HOST_SIZE, - sctx->priv_user ? sctx->priv_user : "", "[", + sctx->priv_user[0] ? sctx->priv_user : "", "[", sctx->user ? sctx->user : "", "] @ ", sctx->host ? sctx->host : "", " [", sctx->ip ? sctx->ip : "", "]", NullS) - buf; |