1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

A fix for the crashing bug in mysql client program

This commit is contained in:
Sinisa@sinisa.nasamreza.org
2003-05-01 20:01:39 +03:00
parent 64b0bfcf00
commit 07c2c4a67c

View File

@@ -2593,6 +2593,8 @@ static void mysql_end_timer(ulong start_time,char *buff)
static const char* construct_prompt() static const char* construct_prompt()
{ {
//erase the old prompt //erase the old prompt
if (!mysql_get_host_info(&mysql))
return processed_prompt.ptr();
processed_prompt.free(); processed_prompt.free();
//get the date struct //get the date struct
time_t lclock = time(NULL); time_t lclock = time(NULL);