summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/file_util_proxy.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/file_util_proxy.cc b/base/file_util_proxy.cc
index d357e98..1d5b9cc 100644
--- a/base/file_util_proxy.cc
+++ b/base/file_util_proxy.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -570,7 +570,8 @@ class RelayWrite : public MessageLoopRelay {
offset_(offset),
buffer_(new char[bytes_to_write]),
bytes_to_write_(bytes_to_write),
- callback_(callback) {
+ callback_(callback),
+ bytes_written_(0) {
memcpy(buffer_.get(), buffer, bytes_to_write);
}