Skip to content

Commit

Permalink
Fix uninitialized pointer bug introduced by
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rdsmith@chromium.org committed Oct 18, 2012
1 parent 6e43593 commit 96e8f28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/browser/download/drag_download_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_

Expand Down

0 comments on commit 96e8f28

Please sign in to comment.