diff options
Diffstat (limited to 'src/third_party/pcre-8.42/pcrecpp.cc')
-rw-r--r-- | src/third_party/pcre-8.42/pcrecpp.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/third_party/pcre-8.42/pcrecpp.cc b/src/third_party/pcre-8.42/pcrecpp.cc index f37e3ed7c44..0b0cb8555f4 100644 --- a/src/third_party/pcre-8.42/pcrecpp.cc +++ b/src/third_party/pcre-8.42/pcrecpp.cc @@ -99,8 +99,7 @@ static const char *start_options[] = { void RE::Init(const string& pat, const RE_Options* options) { pattern_ = pat; if (options == NULL) { - static const RE_Options& default_options = *new RE_Options(); - options_ = default_options; + options_ = RE_Options(); } else { options_ = *options; } |