diff options
author | unknown <bell@sanja.is.com.ua> | 2003-03-26 22:04:20 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-03-26 22:04:20 +0200 |
commit | f149c2776d48cfe53baff16b39157199a81bbfce (patch) | |
tree | 26451945f5331c21811abba9202ea20152a9f4a8 /sql/sql_show.cc | |
parent | 3d6dcd6567d70a80a01b47f179a7670572846556 (diff) | |
download | mariadb-git-f149c2776d48cfe53baff16b39157199a81bbfce.tar.gz |
fixed problem of port without host in SHOW PROCESSLIST (bug 189)
sql/sql_show.cc:
fixed problem of port without host in SHOW PROCESSLIST
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 23e5049636a..6e1cf2e8217 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -1060,7 +1060,7 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose) thd_info->user=thd->strdup(tmp->user ? tmp->user : (tmp->system_thread ? "system user" : "unauthenticated user")); - if (tmp->peer_port && (tmp->host || tmp->ip)) + if (tmp->peer_port && (tmp->host || tmp->ip) && thd->host_or_ip[0]) { if ((thd_info->host= thd->alloc(LIST_PROCESS_HOST_LEN+1))) my_snprintf((char *) thd_info->host, LIST_PROCESS_HOST_LEN, |