You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2022/07/07 16:56:20 UTC
[trafficserver] branch 9.2.x updated: Fixed issues when compiling with -Og (#8665)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new 5d182742d Fixed issues when compiling with -Og (#8665)
5d182742d is described below
commit 5d182742db209a19d95033e7ef88ad112934a334
Author: Bryan Call <bc...@apache.org>
AuthorDate: Mon Feb 14 11:26:41 2022 -0800
Fixed issues when compiling with -Og (#8665)
(cherry picked from commit 295a106e82f2ad6e7d7717d3666c6b7ad456dac0)
---
iocore/cache/Cache.cc | 2 +-
proxy/http2/HTTP2.cc | 2 +-
tests/gold_tests/chunked_encoding/smuggle-client.c | 2 +-
tests/gold_tests/tls/ssl-post.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc
index d333a16f0..195143320 100644
--- a/iocore/cache/Cache.cc
+++ b/iocore/cache/Cache.cc
@@ -1437,7 +1437,7 @@ Vol::handle_recover_from_data(int event, void * /* data ATS_UNUSED */)
{
uint32_t got_len = 0;
uint32_t max_sync_serial = header->sync_serial;
- char *s, *e;
+ char *s, *e = nullptr;
if (event == EVENT_IMMEDIATE) {
if (header->sync_serial == 0) {
io.aiocb.aio_buf = nullptr;
diff --git a/proxy/http2/HTTP2.cc b/proxy/http2/HTTP2.cc
index df5e25801..f1360ddc6 100644
--- a/proxy/http2/HTTP2.cc
+++ b/proxy/http2/HTTP2.cc
@@ -606,7 +606,7 @@ http2_convert_header_from_1_1_to_2(HTTPHdr *headers)
// :path
if (MIMEField *field = headers->field_find(HTTP2_VALUE_PATH, HTTP2_LEN_PATH); field != nullptr) {
- int value_len;
+ int value_len = 0;
const char *value = headers->path_get(&value_len);
ts::LocalBuffer<char> buf(value_len + 1);
diff --git a/tests/gold_tests/chunked_encoding/smuggle-client.c b/tests/gold_tests/chunked_encoding/smuggle-client.c
index db1101140..7b9584ac1 100644
--- a/tests/gold_tests/chunked_encoding/smuggle-client.c
+++ b/tests/gold_tests/chunked_encoding/smuggle-client.c
@@ -48,7 +48,7 @@ main(int argc, char *argv[])
{
struct addrinfo hints;
struct addrinfo *result, *rp;
- int sfd, s;
+ int sfd = -1, s;
if (argc < 3) {
fprintf(stderr, "Usage: %s <target addr> <target_port>\n", argv[0]);
diff --git a/tests/gold_tests/tls/ssl-post.c b/tests/gold_tests/tls/ssl-post.c
index 0df6ad822..4af8f7507 100644
--- a/tests/gold_tests/tls/ssl-post.c
+++ b/tests/gold_tests/tls/ssl-post.c
@@ -222,7 +222,7 @@ main(int argc, char *argv[])
{
struct addrinfo hints;
struct addrinfo *result, *rp;
- int sfd, s;
+ int sfd = -1, s;
if (argc < 4) {
fprintf(stderr, "Usage: %s host thread-count header-count [port]\n", argv[0]);