1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fix segmentation fault in mysqlcheck when the last table

checked with --auto-repair mode returned an error (such
as being a merge table). (Bug #9492)
This commit is contained in:
jimw@mysql.com
2005-03-31 11:43:39 -08:00
parent b5528a8dc6
commit e286515667

View File

@ -537,6 +537,7 @@ static void print_result()
my_bool found_error=0;
res = mysql_use_result(sock);
prev[0] = '\0';
for (i = 0; (row = mysql_fetch_row(res)); i++)
{
@ -565,7 +566,7 @@ static void print_result()
putchar('\n');
}
if (found_error && opt_auto_repair && what_to_do != DO_REPAIR &&
(!opt_fast || strcmp(row[3],"OK")))
!opt_fast)
insert_dynamic(&tables4repair, prev);
mysql_free_result(res);
}