diff --git a/src/tscore/Regex.cc b/src/tscore/Regex.cc index e8195f0de28..22bb2e1c9ec 100644 --- a/src/tscore/Regex.cc +++ b/src/tscore/Regex.cc @@ -55,10 +55,10 @@ Regex::Regex(Regex &&that) noexcept : regex(that.regex), regex_extra(that.regex_ bool Regex::compile(const char *pattern, const unsigned flags) { - const char *error; - int erroffset; - int options = 0; - int study_opts = 0; + const char *error = nullptr; + int erroffset = 0; + int options = 0; + int study_opts = 0; if (regex) { return false;