This is an automated email from the ASF dual-hosted git repository. bcall pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new db75f18 Fixed warning in gcc 11 about array not being initalized (#7840) db75f18 is described below commit db75f1869883614b49cd6276edcb138e44af7cad Author: Bryan Call <bc...@apache.org> AuthorDate: Fri May 14 12:55:20 2021 -0700 Fixed warning in gcc 11 about array not being initalized (#7840) --- 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()); }