From 07c2c4a67ca7d4469f9fb271fedece13845a3f25 Mon Sep 17 00:00:00 2001 From: "Sinisa@sinisa.nasamreza.org" <> Date: Thu, 1 May 2003 20:01:39 +0300 Subject: [PATCH] A fix for the crashing bug in mysql client program --- client/mysql.cc | 2 ++ 1 file changed, 2 insertions(+) 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);