diff options
Diffstat (limited to 'client/readline.cc')
-rw-r--r-- | client/readline.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/readline.cc b/client/readline.cc index f6d3d1295f1..51cbd89f29f 100644 --- a/client/readline.cc +++ b/client/readline.cc @@ -31,9 +31,9 @@ static char *intern_read_line(LINE_BUFFER *buffer, ulong *out_length); LINE_BUFFER *batch_readline_init(ulong max_size,FILE *file) { LINE_BUFFER *line_buff; - MY_STAT input_file_stat; #ifndef __WIN__ + MY_STAT input_file_stat; if (my_fstat(fileno(file), &input_file_stat, MYF(MY_WME)) || MY_S_ISDIR(input_file_stat.st_mode) || MY_S_ISBLK(input_file_stat.st_mode)) @@ -56,6 +56,7 @@ char *batch_readline(LINE_BUFFER *line_buff) { char *pos; ulong out_length; + LINT_INIT(out_length); if (!(pos=intern_read_line(line_buff, &out_length))) return 0; |