Commit e24f16a6 authored by Tor Didriksen's avatar Tor Didriksen

Bug #11766729 59906: 5.5 DEBUG BUILDS BROKEN BY EXTRA/COMP_ERR.C


extra/comp_err.c:
  Initialize er_last to zero (which is the correct value if we never enter the loop).
parent e86d90e7
...@@ -219,14 +219,13 @@ static void print_escaped_string(FILE *f, const char *str) ...@@ -219,14 +219,13 @@ static void print_escaped_string(FILE *f, const char *str)
static int create_header_files(struct errors *error_head) static int create_header_files(struct errors *error_head)
{ {
uint er_last; uint er_last= 0;
FILE *er_definef, *sql_statef, *er_namef; FILE *er_definef, *sql_statef, *er_namef;
struct errors *tmp_error; struct errors *tmp_error;
struct message *er_msg; struct message *er_msg;
const char *er_text; const char *er_text;
DBUG_ENTER("create_header_files"); DBUG_ENTER("create_header_files");
LINT_INIT(er_last);
if (!(er_definef= my_fopen(HEADERFILE, O_WRONLY, MYF(MY_WME)))) if (!(er_definef= my_fopen(HEADERFILE, O_WRONLY, MYF(MY_WME))))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment