From afaeea9dd75d89ee5e4866af29648d94d2e553ef Mon Sep 17 00:00:00 2001 From: "gbillock@chromium.org" Date: Tue, 28 Jun 2011 01:46:50 +0000 Subject: Reland 90618 - Remove check for entry_. From coverity CID=8237 Check result of inflateInit Coverity CID=14712 R=fischman@chromium.org Review URL: http://codereview.chromium.org/7253017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90696 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/base/decompressor_zlib.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'remoting/base') diff --git a/remoting/base/decompressor_zlib.cc b/remoting/base/decompressor_zlib.cc index 770abd5..6dbc21b 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,8 @@ void DecompressorZlib::InitStream() { stream_->zfree = Z_NULL; stream_->opaque = Z_NULL; - inflateInit(stream_.get()); + int ret = inflateInit(stream_.get()); + DCHECK_EQ(ret, Z_OK); } } // namespace remoting -- cgit v1.1