summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-09-25 21:56:52 +0500
committerunknown <hf@deer.(none)>2004-09-25 21:56:52 +0500
commite9a3612a8a2edd079fc0d5fb8d314ebd9a446544 (patch)
treeb01cf086d02a8c6999f0ca1344a84ef797c6ea82 /libmysqld
parent9ff04fe526a54cff752e5a792a81b45cdd9a8a9c (diff)
downloadmariadb-git-e9a3612a8a2edd079fc0d5fb8d314ebd9a446544.tar.gz
Fix asked by Ranger.
If embedded library gets empty string as a hostname it should use embedded connection libmysqld/libmysqld.c: Check for empty string added
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/libmysqld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysqld/libmysqld.c b/libmysqld/libmysqld.c
index 3b9c2bab448..a2c4be1a078 100644
--- a/libmysqld/libmysqld.c
+++ b/libmysqld/libmysqld.c
@@ -145,7 +145,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
if (mysql->options.methods_to_use == MYSQL_OPT_USE_REMOTE_CONNECTION ||
(mysql->options.methods_to_use == MYSQL_OPT_GUESS_CONNECTION &&
- host && strcmp(host,LOCAL_HOST)))
+ host && *host && strcmp(host,LOCAL_HOST)))
DBUG_RETURN(cli_mysql_real_connect(mysql, host, user,
passwd, db, port,
unix_socket, client_flag));