mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
mysql: don't crash when --show-warnings is enabled
and the server suddenly goes away
This commit is contained in:
@ -3588,7 +3588,7 @@ static void print_warnings()
|
|||||||
mysql_store_result_for_lazy(&result);
|
mysql_store_result_for_lazy(&result);
|
||||||
|
|
||||||
/* Bail out when no warnings */
|
/* Bail out when no warnings */
|
||||||
if (!(num_rows= mysql_num_rows(result)))
|
if (!result || !(num_rows= mysql_num_rows(result)))
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
cur= mysql_fetch_row(result);
|
cur= mysql_fetch_row(result);
|
||||||
|
Reference in New Issue
Block a user