Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(903)

Unified Diff: remoting/base/decompressor_zlib.cc

Issue 7222027: Add checks for entry_. From coverity CID=8237 (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Remove entry_ checks Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_cache_transaction.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/decompressor_zlib.cc
diff --git a/remoting/base/decompressor_zlib.cc b/remoting/base/decompressor_zlib.cc
index 770abd5a3b1a15b00b93a0e022f94e39ab73172b..150f1a89ef07435f9828be9313519799f54c3e20 100644
--- a/remoting/base/decompressor_zlib.cc
+++ b/remoting/base/decompressor_zlib.cc
@@ -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
« no previous file with comments | « net/http/http_cache_transaction.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698