Skip to content

Commit 57ea17d

Browse files
bryancallzwoop
authored andcommitted
Fixed warning in gcc 11 about array not being initalized (#7840)
(cherry picked from commit db75f18)
1 parent 23e7a04 commit 57ea17d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tscore/Regex.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Regex::get_capture_count()
111111
bool
112112
Regex::exec(std::string_view const &str)
113113
{
114-
std::array<int, DEFAULT_GROUP_COUNT * 3> ovector;
114+
std::array<int, DEFAULT_GROUP_COUNT * 3> ovector = {0};
115115
return this->exec(str, ovector.data(), ovector.size());
116116
}
117117

0 commit comments

Comments
 (0)