From 7965e5457ab99ee46a6bac9429fc2b28554e469f Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 9 Apr 2015 00:12:33 +0000 Subject: [PATCH] Missed moving a variable during my previous revision 234455. llvm-svn: 234456 --- lldb/source/Host/common/File.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp index 94b0529b..4361eae 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -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) { -- 2.7.4