Missed moving a variable during my previous revision 234455.

llvm-svn: 234456
This commit is contained in:
Greg Clayton 2015-04-09 00:12:33 +00:00
parent 29aac9a56c
commit 7965e5457a
1 changed files with 2 additions and 1 deletions

View File

@ -887,6 +887,8 @@ File::Read (size_t &num_bytes, off_t &offset, bool null_terminate, DataBufferSP
Error
File::Write (const void *buf, size_t &num_bytes, off_t &offset)
{
Error error;
#if defined (MAX_WRITE_SIZE)
if (num_bytes > MAX_WRITE_SIZE)
{
@ -919,7 +921,6 @@ File::Write (const void *buf, size_t &num_bytes, off_t &offset)
}
#endif
Error error;
int fd = GetDescriptor();
if (fd != kInvalidDescriptor)
{