Skip to content

Commit 08d475c

Browse files
committed
Fixed core dump in "echo shutdown | mysqld --bootstrap"
1 parent 1cca837 commit 08d475c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/sql_bootstrap.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ int read_bootstrap_query(char *query, int *query_length,
2929
int fgets_error= 0;
3030
*error= 0;
3131

32+
*query_length= 0;
3233
for ( ; ; )
3334
{
3435
line= (*fgets_fn)(line_buffer, sizeof(line_buffer), input, &fgets_error);

0 commit comments

Comments
 (0)