summaryrefslogtreecommitdiffstats
path: root/content/browser/download/drag_download_file.cc
diff options
context:
space:
mode:
authorrdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 16:07:02 +0000
committerrdsmith@chromium.org <rdsmith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 16:07:02 +0000
commit96e8f28bd036b57fea0e79473b76b72ac0bb940e (patch)
treef87a2455b9fb78ebc6b3787d462e8f4c8844822d /content/browser/download/drag_download_file.cc
parent6e435931d96518f265eb7628403ee845db49ae4f (diff)
downloadchromium_src-96e8f28bd036b57fea0e79473b76b72ac0bb940e.zip
chromium_src-96e8f28bd036b57fea0e79473b76b72ac0bb940e.tar.gz
chromium_src-96e8f28bd036b57fea0e79473b76b72ac0bb940e.tar.bz2
Fix uninitialized pointer bug introduced by
http://codereview.chromium.org/11028131. R=benjhayden@chromium.org Review URL: https://chromiumcodereview.appspot.com/11198047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162714 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/drag_download_file.cc')
-rw-r--r--content/browser/download/drag_download_file.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/browser/download/drag_download_file.cc b/content/browser/download/drag_download_file.cc
index ca9fb2b..323a69a 100644
--- a/content/browser/download/drag_download_file.cc
+++ b/content/browser/download/drag_download_file.cc
@@ -133,7 +133,8 @@ void DragDownloadFile::InitiateDownload() {
download_manager_observer_added_ = true;
download_manager_->AddObserver(this);
- scoped_ptr<content::DownloadSaveInfo> save_info;
+ scoped_ptr<content::DownloadSaveInfo> save_info(
+ new content::DownloadSaveInfo());
save_info->file_path = file_path_;
save_info->file_stream = file_stream_.Pass(); // Nulls file_stream_