summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorSinisa@sinisa.nasamreza.org <>2003-05-01 20:01:39 +0300
committerSinisa@sinisa.nasamreza.org <>2003-05-01 20:01:39 +0300
commit07c2c4a67ca7d4469f9fb271fedece13845a3f25 (patch)
tree773856a73f277c8d0a98992ebfb9869db24f9685 /client
parent64b0bfcf00c402d9ec1bcc687023432993a17f39 (diff)
downloadmariadb-git-07c2c4a67ca7d4469f9fb271fedece13845a3f25.tar.gz
A fix for the crashing bug in mysql client program
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index a237561d83d..4ab97f1b3cf 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -2593,6 +2593,8 @@ static void mysql_end_timer(ulong start_time,char *buff)
static const char* construct_prompt()
{
//erase the old prompt
+ if (!mysql_get_host_info(&mysql))
+ return processed_prompt.ptr();
processed_prompt.free();
//get the date struct
time_t lclock = time(NULL);