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 2021/05/17 16:45:45 UTC
[trafficserver] 02/02: Extra braces for clang 5 / ubuntu 16.04 on
array initialization (#7842)
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 bd8dc1a212251a97d015c9638898c1cf92ac2d71
Author: Bryan Call <bc...@apache.org>
AuthorDate: Mon May 17 07:50:52 2021 -0700
Extra braces for clang 5 / ubuntu 16.04 on array initialization (#7842)
(cherry picked from commit e728d0a2614b940821a1a401176b3a9612a5b5f1)
---
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 ea80116..1fe1e31 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 = {0};
+ std::array<int, DEFAULT_GROUP_COUNT * 3> ovector = {{0}};
return this->exec(str, ovector.data(), ovector.size());
}