1
0
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:
Monty
2023-01-05 15:43:14 +02:00
parent 8d4bccf338
commit 1a13dbff01
3 changed files with 16 additions and 1 deletions

View File

@@ -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);