From e79dfd91d06303b8be03095336593a20737d30e6 Mon Sep 17 00:00:00 2001 From: "hf@deer.(none)" <> Date: Sat, 25 Sep 2004 21:56:52 +0500 Subject: Fix asked by Ranger. If embedded library gets empty string as a hostname it should use embedded connection --- libmysqld/libmysqld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmysqld/libmysqld.c') 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)); -- cgit v1.2.1