From 68f490233312c47a06f6aea253119a8f7a60ec76 Mon Sep 17 00:00:00 2001 From: Bryan Call Date: Fri, 14 May 2021 12:05:28 -0700 Subject: [PATCH] Fixed warning in gcc 11 about array not being initalized --- 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 9d93c8d5247..ea801166437 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 ovector; + std::array ovector = {0}; return this->exec(str, ovector.data(), ovector.size()); }