mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-30327 Client crashes in print_last_query_cost
Fixed by calling init_pager() before tee_fprintf()
This commit is contained in:
@@ -4217,7 +4217,10 @@ static void print_last_query_cost()
|
||||
|
||||
cur= mysql_fetch_row(result);
|
||||
if (strtod(cur[1], &end) != 0.0)
|
||||
{
|
||||
init_pager();
|
||||
tee_fprintf(PAGER, "%s: %s\n\n", cur[0], cur[1]);
|
||||
}
|
||||
|
||||
end:
|
||||
mysql_free_result(result);
|
||||
|
Reference in New Issue
Block a user