From 9724a2590127891b503ed8e5abc4dcd6ddad1ccc Mon Sep 17 00:00:00 2001 From: "monty@mashka.mysql.fi" <> Date: Sun, 3 Aug 2003 16:33:04 +0300 Subject: [PATCH] Cleaned up code comment --- sql/item_strfunc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 9e37a5a18e5..ff01d841e78 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -1094,7 +1094,8 @@ String *Item_func_database::val_str(String *str) String *Item_func_user::val_str(String *str) { THD *thd=current_thd; - if (!(thd->user) || // for system threads (e.g. replication thread) + // For a replication thread user may be a null pointer (To be fixed) + if (!thd->user || str->copy((const char*) thd->user,(uint) strlen(thd->user)) || str->append('@') || str->append(thd->host ? thd->host : thd->ip ? thd->ip : ""))