summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <monty@tik.mysql.fi>2002-04-16 16:29:14 +0300
committerunknown <monty@tik.mysql.fi>2002-04-16 16:29:14 +0300
commit667da1396b5a20ad7b4ba94136e47e64b6368daa (patch)
tree1ffc14ca2c35e314c452fe5d5169332a4e892d85 /sql/sql_parse.cc
parent0eb8770799374dc2a9ab4962b77de8bbc4015f93 (diff)
downloadmariadb-git-667da1396b5a20ad7b4ba94136e47e64b6368daa.tar.gz
Fixed pthread_cond_timedwait() for HPUX and DCE threads
Cleanup of LIBWRAP handling Docs/manual.texi: Changelog include/my_pthread.h: Fixed pthread_cond_timedwait() for HPUX and DCE threads mysys/my_pthread.c: Fixed pthread_cond_timedwait() for HPUX and DCE threads sql/item_func.cc: Fixed the GET_LOCK() works with HPUX and DCE threads sql/mysqld.cc: Cleanup of LIBWRAP handling sql/sql_parse.cc: Safety fix
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index fa4a4fd4f3b..4f9140cc3f2 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -530,7 +530,7 @@ pthread_handler_decl(handle_one_connection,arg)
if ((error=check_connections(thd)))
{ // Wrong permissions
if (error > 0)
- net_printf(net,error,thd->host ? thd->host : thd->ip);
+ net_printf(net,error,thd->host ? thd->host : (thd->ip ? thd->ip : ""));
#ifdef __NT__
if (vio_type(net->vio) == VIO_TYPE_NAMEDPIPE)
sleep(1); /* must wait after eof() */