commit | 969c3bd5a820ea0613b9a7ddcd97c3de1bb19285 | [log] [tgz] |
---|---|---|
author | Paul Wankadia <junyer@google.com> | Thu Apr 29 04:41:42 2021 -0700 |
committer | Paul Wankadia <junyer@google.com> | Thu Apr 29 11:43:04 2021 +0000 |
tree | 4185058cb912427c5f7638ffab2ebcfcc389befe | |
parent | 6ec705dcd7a44a458f2b41630ab2101dc404053c [diff] |
Nullify hooks::context when using RE2::Set. Change-Id: Ic39cfa31d3346abbdbcda5baeb12ec8ec27f2f29 Reviewed-on: https://code-review.googlesource.com/c/re2/+/58510 Reviewed-by: Paul Wankadia <junyer@google.com>
diff --git a/re2/set.cc b/re2/set.cc index c3924bf..1870566 100644 --- a/re2/set.cc +++ b/re2/set.cc
@@ -133,6 +133,9 @@ error_info->kind = kNotCompiled; return false; } +#ifdef RE2_HAVE_THREAD_LOCAL + hooks::context = NULL; +#endif bool dfa_failed = false; std::unique_ptr<SparseSet> matches; if (v != NULL) {