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).
This commit is contained in:
parent
e86d90e72c
commit
e24f16a6cd
@ -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))))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user