mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +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);
|
||||
|
||||
/* Bail out when no warnings */
|
||||
if (!(num_rows= mysql_num_rows(result)))
|
||||
if (!result || !(num_rows= mysql_num_rows(result)))
|
||||
goto end;
|
||||
|
||||
cur= mysql_fetch_row(result);
|
||||
|
Reference in New Issue
Block a user