summaryrefslogtreecommitdiff
path: root/extra/comp_err.c
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2011-02-16 14:48:30 +0100
committerTor Didriksen <tor.didriksen@oracle.com>2011-02-16 14:48:30 +0100
commite24f16a6cd7786b0900be12484f45f8bcbd8006b (patch)
tree201d7a66fe053b3fc73717c4356d79196a4a1e9d /extra/comp_err.c
parente86d90e72cdc85e7b987bd68b666e5077c9eaa88 (diff)
downloadmariadb-git-e24f16a6cd7786b0900be12484f45f8bcbd8006b.tar.gz
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).
Diffstat (limited to 'extra/comp_err.c')
-rw-r--r--extra/comp_err.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/extra/comp_err.c b/extra/comp_err.c
index 4c40e70f5b7..9f7b47a1a1e 100644
--- a/extra/comp_err.c
+++ b/extra/comp_err.c
@@ -219,14 +219,13 @@ static void print_escaped_string(FILE *f, const char *str)
static int create_header_files(struct errors *error_head)
{
- uint er_last;
+ uint er_last= 0;
FILE *er_definef, *sql_statef, *er_namef;
struct errors *tmp_error;
struct message *er_msg;
const char *er_text;
DBUG_ENTER("create_header_files");
- LINT_INIT(er_last);
if (!(er_definef= my_fopen(HEADERFILE, O_WRONLY, MYF(MY_WME))))
{