Missed moving a variable during my previous revision 234455.
llvm-svn: 234456
diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp
index 94b0529..4361eae 100644
--- a/lldb/source/Host/common/File.cpp
+++ b/lldb/source/Host/common/File.cpp
@@ -887,6 +887,8 @@
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 @@
}
#endif
- Error error;
int fd = GetDescriptor();
if (fd != kInvalidDescriptor)
{