summaryrefslogtreecommitdiff
path: root/client/mysqltest.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/mysqltest.c')
-rw-r--r--client/mysqltest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index 953f770240b..7c708254f1c 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -1154,6 +1154,10 @@ int parse_args(int argc, char **argv)
tty_password=1;
break;
case 'P':
+ if(!host) {
+ my_free(host, MYF(MY_ALLOW_ZERO_PTR));
+ host=my_strdup("127.0.0.1", MYF(MY_WME));
+ };
port = atoi(optarg);
break;
case 'S':