You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2017/10/11 07:50:34 UTC

[trafficserver] 01/25: Initialize variable to fix gcc 7.2.1 error error: ‘gap’ may be used uninitialized in this function

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

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

commit 22ec555bd27c0f0fe48ab8435e287243255ce9cd
Author: Bryan Call <bc...@apache.org>
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
    
    (cherry picked from commit cbf265cd6b0b06ce9c353f911ef109026fbe412b)
---
 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
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.