bryancall commented on code in PR #11383:
URL: https://github.com/apache/trafficserver/pull/11383#discussion_r1610220328


##########
plugins/background_fetch/headers.cc:
##########
@@ -97,19 +97,15 @@ set_header(TSMBuffer bufp, TSMLoc hdr_loc, const char 
*header, int len, const ch
 void
 dump_headers(TSMBuffer bufp, TSMLoc hdr_loc)
 {
-  TSIOBuffer       output_buffer;
-  TSIOBufferReader reader;
-  TSIOBufferBlock  block;
-  int64_t          block_avail;
-
-  output_buffer = TSIOBufferCreate();
-  reader        = TSIOBufferReaderAlloc(output_buffer);
+  TSIOBuffer       output_buffer = TSIOBufferCreate();
+  TSIOBufferReader reader        = TSIOBufferReaderAlloc(output_buffer);
+  int64_t          block_avail   = 0;

Review Comment:
   Coverity was complaining that  block_avail wasn't initialized.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to