Skip to content

Commit

Permalink
Fixed core dump in "echo shutdown | mysqld --bootstrap"
Browse files Browse the repository at this point in the history
  • Loading branch information
montywi committed Jun 14, 2020
1 parent 1cca837 commit 08d475c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sql/sql_bootstrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ int read_bootstrap_query(char *query, int *query_length,
int fgets_error= 0;
*error= 0;

*query_length= 0;
for ( ; ; )
{
line= (*fgets_fn)(line_buffer, sizeof(line_buffer), input, &fgets_error);
Expand Down

0 comments on commit 08d475c

Please sign in to comment.