mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
A fix for the crashing bug in mysql client program
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user