This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 9.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 57ea17df44a4196f9ee1f82417e0dc916e6f8a2c Author: Bryan Call <[email protected]> AuthorDate: Fri May 14 12:55:20 2021 -0700 Fixed warning in gcc 11 about array not being initalized (#7840) (cherry picked from commit db75f1869883614b49cd6276edcb138e44af7cad) --- src/tscore/Regex.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tscore/Regex.cc b/src/tscore/Regex.cc index 9d93c8d..ea80116 100644 --- a/src/tscore/Regex.cc +++ b/src/tscore/Regex.cc @@ -111,7 +111,7 @@ Regex::get_capture_count() bool Regex::exec(std::string_view const &str) { - std::array<int, DEFAULT_GROUP_COUNT * 3> ovector; + std::array<int, DEFAULT_GROUP_COUNT * 3> ovector = {0}; return this->exec(str, ovector.data(), ovector.size()); }
