mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02:00
Fixed core dump in "echo shutdown | mysqld --bootstrap"
This commit is contained in:
parent
1cca83784f
commit
08d475c73b
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ int read_bootstrap_query(char *query, int *query_length,
|
||||||
int fgets_error= 0;
|
int fgets_error= 0;
|
||||||
*error= 0;
|
*error= 0;
|
||||||
|
|
||||||
|
*query_length= 0;
|
||||||
for ( ; ; )
|
for ( ; ; )
|
||||||
{
|
{
|
||||||
line= (*fgets_fn)(line_buffer, sizeof(line_buffer), input, &fgets_error);
|
line= (*fgets_fn)(line_buffer, sizeof(line_buffer), input, &fgets_error);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue