diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-12 09:24:11 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-12 09:24:11 +0000 |
commit | 7726bd96a6ff7ec936c2067fc848758f241dac70 (patch) | |
tree | 63e927403f2fac0bab9e91ff926b0446eac78b0a /net | |
parent | 5644581074682888f92621c8ffeeaa7f9c7fe86e (diff) | |
download | chromium_src-7726bd96a6ff7ec936c2067fc848758f241dac70.zip chromium_src-7726bd96a6ff7ec936c2067fc848758f241dac70.tar.gz chromium_src-7726bd96a6ff7ec936c2067fc848758f241dac70.tar.bz2 |
Uninitialized member vars in CacheDumper.
BUG=None
TEST=None
CID=4913
Review URL: http://codereview.chromium.org/3155006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55861 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/tools/dump_cache/dump_files.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/tools/dump_cache/dump_files.cc b/net/tools/dump_cache/dump_files.cc index 8a9abca..7a2585f 100644 --- a/net/tools/dump_cache/dump_files.cc +++ b/net/tools/dump_cache/dump_files.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -108,7 +108,10 @@ class CacheDumper { explicit CacheDumper(const std::wstring& path) : path_(path), block_files_(FilePath::FromWStringHack(path)), - index_(NULL) {} + index_(NULL), + current_hash_(0), + next_addr_(0) { + } bool Init(); @@ -147,8 +150,6 @@ bool CacheDumper::Init() { return false; } - current_hash_ = 0; - next_addr_ = 0; return true; } |