diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-24 20:32:12 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-24 20:32:12 +0000 |
commit | 95e0fc47e4a0a5dcc7899118c3f2ea49df5a4bbe (patch) | |
tree | cdc97615320883cbec6af8074d831e33bc108bde /chrome/browser/download/save_package.cc | |
parent | 1ab3867a1f038e42dbbaf5d1a1c96ca9588e7816 (diff) | |
download | chromium_src-95e0fc47e4a0a5dcc7899118c3f2ea49df5a4bbe.zip chromium_src-95e0fc47e4a0a5dcc7899118c3f2ea49df5a4bbe.tar.gz chromium_src-95e0fc47e4a0a5dcc7899118c3f2ea49df5a4bbe.tar.bz2 |
Coverity: Initialize tab_contents_ and wait_state_ in the constructor.
CID=1510
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/218036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27120 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/save_package.cc')
-rw-r--r-- | chrome/browser/download/save_package.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/download/save_package.cc b/chrome/browser/download/save_package.cc index 7ec85e7..2fd35ee 100644 --- a/chrome/browser/download/save_package.cc +++ b/chrome/browser/download/save_package.cc @@ -167,6 +167,7 @@ SavePackage::SavePackage(TabContents* tab_contents) SavePackage::SavePackage(const FilePath& file_full_path, const FilePath& directory_full_path) : file_manager_(NULL), + tab_contents_(NULL), download_(NULL), saved_main_file_path_(file_full_path), saved_main_directory_path_(directory_full_path), @@ -175,6 +176,7 @@ SavePackage::SavePackage(const FilePath& file_full_path, disk_error_occurred_(false), save_type_(SAVE_TYPE_UNKNOWN), all_save_items_count_(0), + wait_state_(INITIALIZE), tab_id_(0) { DCHECK(!saved_main_file_path_.empty() && saved_main_file_path_.value().length() <= kMaxFilePathLength); |