Skip to content

Commit bc682d5

Browse files
author
Marc Stern
committed
Revert pcre_study() creating the extra data, as it's done afterwards anyway.
1 parent 84ad094 commit bc682d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apache2/msc_pcre.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ void *msc_pregcomp_ex(apr_pool_t *pool, const char *pattern, int options,
148148

149149
#ifdef WITH_PCRE_STUDY
150150
#ifdef WITH_PCRE_JIT
151-
pe = pcre_study(regex->re, PCRE_STUDY_EXTRA_NEEDED|PCRE_STUDY_JIT_COMPILE, &errptr);
151+
pe = pcre_study(regex->re, PCRE_STUDY_JIT_COMPILE, &errptr);
152152
#else
153-
pe = pcre_study(regex->re, PCRE_STUDY_EXTRA_NEEDED, &errptr);
153+
pe = pcre_study(regex->re, 0, &errptr);
154154
#endif
155155
#endif
156156

0 commit comments

Comments
 (0)