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

Unified Diff: remoting/base/decompressor_zlib.cc

Issue 7253017: Revert 90625 (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Repair method name 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..6259f2d037ea0c5cf51bef62495062083bc017ac 100644
--- a/remoting/base/decompressor_zlib.cc
+++ b/remoting/base/decompressor_zlib.cc
@@ -59,7 +59,10 @@ void DecompressorZlib::InitStream() {
stream_->zfree = Z_NULL;
stream_->opaque = Z_NULL;
- inflateInit(stream_.get());
+ int ret = inflateInit(stream_.get());
+ if (ret != Z_OK) {
+ NOTREACHED() << "zlib init failed";
Ami GONE FROM CHROMIUM 2011/06/27 21:54:35 You're being consistent with the use of NOTREACHED
Greg Billock 2011/06/27 22:03:54 Makes sense. updated.
+ }
}
} // 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