summaryrefslogtreecommitdiff
path: root/ext/pcre/pcrelib/pcre_exec.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2016-01-31 20:33:17 -0800
committerStanislav Malyshev <stas@php.net>2016-01-31 20:37:47 -0800
commitca02d9c2d6f9bea7bf8abe607f1ee9484b1d7b62 (patch)
treee160528084046e2afc3bd3da4ce43bf0a808fa9a /ext/pcre/pcrelib/pcre_exec.c
parentdf78eacc2f136b0bf5669e1a914672ea98783940 (diff)
downloadphp-git-ca02d9c2d6f9bea7bf8abe607f1ee9484b1d7b62.tar.gz
Upgrade bundled PCRE to 8.38
Diffstat (limited to 'ext/pcre/pcrelib/pcre_exec.c')
-rw-r--r--ext/pcre/pcrelib/pcre_exec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/pcre/pcrelib/pcre_exec.c b/ext/pcre/pcrelib/pcre_exec.c
index 3942076490..24b23ca286 100644
--- a/ext/pcre/pcrelib/pcre_exec.c
+++ b/ext/pcre/pcrelib/pcre_exec.c
@@ -688,7 +688,7 @@ the alternative names that are used. */
#define foc number
#define save_mark data
-/* These statements are here to stop the compiler complaining about uninitialized
+/* These statements are here to stop the compiler complaining about unitialized
variables. */
#ifdef SUPPORT_UCP
@@ -6685,7 +6685,8 @@ if (md->offset_vector != NULL)
register int *iend = iptr - re->top_bracket;
if (iend < md->offset_vector + 2) iend = md->offset_vector + 2;
while (--iptr >= iend) *iptr = -1;
- md->offset_vector[0] = md->offset_vector[1] = -1;
+ if (offsetcount > 0) md->offset_vector[0] = -1;
+ if (offsetcount > 1) md->offset_vector[1] = -1;
}
/* Set up the first character to match, if available. The first_char value is