diff options
author | Bjorn Munch <bjorn.munch@oracle.com> | 2010-10-20 11:41:51 +0200 |
---|---|---|
committer | Bjorn Munch <bjorn.munch@oracle.com> | 2010-10-20 11:41:51 +0200 |
commit | e4f9ead1403bff9ff07b659f0e2a2575036d39da (patch) | |
tree | b710ddb767d8fc78f3304205e89c1094976156ec /client | |
parent | e533c7cc108e5b9a00c273baa027358c4edb4dd0 (diff) | |
download | mariadb-git-e4f9ead1403bff9ff07b659f0e2a2575036d39da.tar.gz |
Fixed wrong feof check in read_line, see 52019
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 8523b40fc80..de46624bf2c 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -5733,9 +5733,9 @@ int read_line(char *buf, int size) for (i= 1; i < charlen; i++) { + c= my_getc(cur_file->file); if (feof(cur_file->file)) goto found_eof; - c= my_getc(cur_file->file); *p++ = c; } if (! my_ismbchar(charset_info, mb_start, p)) |