diff options
author | monty@donna.mysql.com <> | 2000-09-07 23:58:43 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-09-07 23:58:43 +0300 |
commit | 11c7092c301865f6e7571a7b9c84605c74451426 (patch) | |
tree | 10e56364ce6757d09940fcf5af704e48484c9b00 /sql/sql_base.cc | |
parent | 71b1a2990a8d1a05d0c5f84322df2144586ddb2d (diff) | |
download | mariadb-git-11c7092c301865f6e7571a7b9c84605c74451426.tar.gz |
Small portability fixes
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r-- | sql/sql_base.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc index de689baaddb..84213a26b94 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -47,7 +47,6 @@ static int send_file(THD *thd) { NET* net = &thd->net; int fd = -1,bytes, error = 1; - uint packet_len; char fname[FN_REFLEN+1]; char buf[IO_SIZE*15]; const char *errmsg = 0; @@ -61,7 +60,7 @@ static int send_file(THD *thd) // we need net_flush here because the client will not know it needs to send // us the file name until it has processed the load event entry - if (net_flush(net) || (packet_len = my_net_read(net)) == packet_error) + if (net_flush(net) || my_net_read(net) == packet_error) { errmsg = "Failed reading file name"; goto err; |