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 953e41f1f06..7cb40181bd7 100644 --- a/sql/sql_audit.h +++ b/sql/sql_audit.h @@ -41,7 +41,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; |