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 5672b1545b Initialize HistoryEntry array (#11264)
5672b1545b is described below

commit 5672b1545b96f8fd7b004de4017e28507f649063
Author: Masaori Koshiba <masa...@apache.org>
AuthorDate: Fri Apr 19 08:30:15 2024 +0900

    Initialize HistoryEntry array (#11264)
    
    (cherry picked from commit e6c269aadd433c96ed42ff720a6970365588907b)
---
 include/tscore/History.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/tscore/History.h b/include/tscore/History.h
index de8feb7c98..1eece9560e 100644
--- a/include/tscore/History.h
+++ b/include/tscore/History.h
@@ -74,7 +74,7 @@ public:
   }
 
 private:
-  HistoryEntry history[Count];
+  HistoryEntry history[Count] = {};
 
   unsigned int history_pos = 0;
 };

Reply via email to