diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index c4aa4ba7efbd2ab949493bc8fdae7cadc5667f71..c058e66df977c3a7e954c0ec46e6e06a159aebbd 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -3007,7 +3007,7 @@ void Security_context::init()
 {
   host= user= ip= external_user= 0;
   host_or_ip= "connecting host";
-  priv_user[0]= priv_host[0]= '\0';
+  priv_user[0]= priv_host[0]= proxy_user[0]= '\0';
   master_access= 0;
 #ifndef NO_EMBEDDED_ACCESS_CHECKS
   db_access= NO_ACCESS;