summaryrefslogtreecommitdiff
path: root/client/readline.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-05-03 19:30:21 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2011-05-03 19:30:21 +0200
commit7d8a918c646afbed344abfb6fbac18c5c9f2be18 (patch)
treef1cdb590a3aefcc7185b3cb0e921e748d74c3345 /client/readline.cc
parentb46f14352b560a4fa6525e3bb1fd2bdfb2cbee7c (diff)
downloadmariadb-git-7d8a918c646afbed344abfb6fbac18c5c9f2be18.tar.gz
Fix warning (unused local variable)
Diffstat (limited to 'client/readline.cc')
-rw-r--r--client/readline.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/readline.cc b/client/readline.cc
index fb8cde577b5..946cb582977 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))