summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorgbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-27 19:30:02 +0000
committergbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-27 19:30:02 +0000
commit292d3351d0480635baff0f4d02a849da3b813c1b (patch)
treedf6274648f15f808f303632fa829419d9b86a6da /remoting
parent2d7c85529b0210e148d70eb3d0edf485d6521708 (diff)
downloadchromium_src-292d3351d0480635baff0f4d02a849da3b813c1b.zip
chromium_src-292d3351d0480635baff0f4d02a849da3b813c1b.tar.gz
chromium_src-292d3351d0480635baff0f4d02a849da3b813c1b.tar.bz2
Add checks for entry_. From coverity CID=8237
Check result of inflateInit Coverity CID=14712 BUG= TEST= Review URL: http://codereview.chromium.org/7222027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/base/decompressor_zlib.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/base/decompressor_zlib.cc b/remoting/base/decompressor_zlib.cc
index 770abd5..212607d 100644
--- a/remoting/base/decompressor_zlib.cc
+++ b/remoting/base/decompressor_zlib.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -59,7 +59,7 @@ void DecompressorZlib::InitStream() {
stream_->zfree = Z_NULL;
stream_->opaque = Z_NULL;
- inflateInit(stream_.get());
+ DCHECK(inflateInit(stream_.get()) == Z_OK);
}
} // namespace remoting