diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 22:35:13 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 22:35:13 +0000 |
commit | 3fc364f9059372255062f7e5d009cce3b4d349f2 (patch) | |
tree | 3ab7e808ce97ce2fd901b1531a366bda8ca692d5 /net/base/file_stream_posix.cc | |
parent | 892b70d03e3b6aa795b43a4bc70c77249e469958 (diff) | |
download | chromium_src-3fc364f9059372255062f7e5d009cce3b4d349f2.zip chromium_src-3fc364f9059372255062f7e5d009cce3b4d349f2.tar.gz chromium_src-3fc364f9059372255062f7e5d009cce3b4d349f2.tar.bz2 |
Relanding Coverity fixes from http://codereview.chromium.org/159862 excluding the broken ones.
The change of GURL -> const GURL& caused some nasty crash and the change got reverted.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/164095
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/file_stream_posix.cc')
-rw-r--r-- | net/base/file_stream_posix.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/base/file_stream_posix.cc b/net/base/file_stream_posix.cc index 5c55781..aac0be2 100644 --- a/net/base/file_stream_posix.cc +++ b/net/base/file_stream_posix.cc @@ -290,12 +290,15 @@ void FileStream::AsyncContext::RunAsynchronousCallback() { // FileStream ------------------------------------------------------------ -FileStream::FileStream() : file_(base::kInvalidPlatformFileValue) { +FileStream::FileStream() + : file_(base::kInvalidPlatformFileValue), + open_flags_(0) { DCHECK(!IsOpen()); } FileStream::FileStream(base::PlatformFile file, int flags) - : file_(file), open_flags_(flags) { + : file_(file), + open_flags_(flags) { // If the file handle is opened with base::PLATFORM_FILE_ASYNC, we need to // make sure we will perform asynchronous File IO to it. if (flags & base::PLATFORM_FILE_ASYNC) { |