From 7726bd96a6ff7ec936c2067fc848758f241dac70 Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Thu, 12 Aug 2010 09:24:11 +0000 Subject: 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 --- net/tools/dump_cache/dump_files.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'net/tools') 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; } -- cgit v1.1