From 08d475c73b0dab575940162d6181187367368974 Mon Sep 17 00:00:00 2001 From: Monty Date: Mon, 8 Jun 2020 15:05:57 +0300 Subject: [PATCH] Fixed core dump in "echo shutdown | mysqld --bootstrap" --- sql/sql_bootstrap.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/sql_bootstrap.cc b/sql/sql_bootstrap.cc index a8c930820a7..dbeb971cd5a 100644 --- a/sql/sql_bootstrap.cc +++ b/sql/sql_bootstrap.cc @@ -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);