This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new cbf265c  Initialize variable to fix gcc 7.2.1 error error: ‘gap’ may 
be used uninitialized in this function
cbf265c is described below

commit cbf265cd6b0b06ce9c353f911ef109026fbe412b
Author: Bryan Call <[email protected]>
AuthorDate: Tue Oct 3 10:45:15 2017 -0700

    Initialize variable to fix gcc 7.2.1 error
    error: ‘gap’ may be used uninitialized in this function
---
 iocore/net/quic/QUICAckFrameCreator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/net/quic/QUICAckFrameCreator.cc 
b/iocore/net/quic/QUICAckFrameCreator.cc
index 26c8199..5abaadb 100644
--- a/iocore/net/quic/QUICAckFrameCreator.cc
+++ b/iocore/net/quic/QUICAckFrameCreator.cc
@@ -75,7 +75,7 @@ QUICAckFrameCreator::_create_ack_frame()
   std::unique_ptr<QUICAckFrame, QUICFrameDeleterFunc> ack_frame = {nullptr, 
QUICFrameDeleter::delete_null_frame};
   this->_sort_packet_numbers();
   uint16_t start = this->_packet_numbers[0];
-  uint8_t gap;
+  uint8_t gap = 0;
   int i;
   uint64_t length = 0;
   for (i = 0, length = 0; i < this->_packet_count; ++i, ++length) {

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to