summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-18 17:36:54 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-18 17:36:54 +0000
commitc3a7bceb912a3c934724a31871a84991cdcf74c3 (patch)
tree8aaf6abdb8f1193e3967019410d2da20e33d7fb2 /net/disk_cache
parent9e8c2cc2dc661ca3b5275a2093281cf14ffaae2e (diff)
downloadchromium_src-c3a7bceb912a3c934724a31871a84991cdcf74c3.zip
chromium_src-c3a7bceb912a3c934724a31871a84991cdcf74c3.tar.gz
chromium_src-c3a7bceb912a3c934724a31871a84991cdcf74c3.tar.bz2
Coverity: Initialize data members in constructor.
CID=1634, 11587, 5007, 13234, 13398, 9295, 8294, 8285 BUG=none TEST=none Review URL: http://codereview.chromium.org/3817007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62945 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r--net/disk_cache/file_posix.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/disk_cache/file_posix.cc b/net/disk_cache/file_posix.cc
index 44d74e7..9d810c7 100644
--- a/net/disk_cache/file_posix.cc
+++ b/net/disk_cache/file_posix.cc
@@ -250,7 +250,10 @@ void InFlightIO::InvokeCallback(BackgroundIO* operation, bool cancel_task) {
namespace disk_cache {
File::File(base::PlatformFile file)
- : init_(true), mixed_(true), platform_file_(file) {
+ : init_(true),
+ mixed_(true),
+ platform_file_(file),
+ sync_platform_file_(base::kInvalidPlatformFileValue) {
}
bool File::Init(const FilePath& name) {