[PATCH v1] record-filter-zlib.cc: Ignore value returned from inflateInit().

Ryan Long ryan.long at oarcorp.com
Tue Oct 5 14:47:13 UTC 2021


CID 1503013: Unchecked return value from library in ZlibFilter().

Closes #4431
---
 trace/record/record-filter-zlib.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/trace/record/record-filter-zlib.cc b/trace/record/record-filter-zlib.cc
index 62f1171..b97335b 100644
--- a/trace/record/record-filter-zlib.cc
+++ b/trace/record/record-filter-zlib.cc
@@ -48,7 +48,7 @@ ZlibFilter::ZlibFilter() : buffer_(65536)
   stream_.data_type = 0;
   stream_.adler     = 0;
   stream_.reserved  = 0;
-  inflateInit(&stream_);
+  (void) inflateInit(&stream_);
 }
 
 ZlibFilter::~ZlibFilter()
-- 
1.8.3.1



More information about the devel mailing list