diff options
author | Kirill Volinsky <Mataes2007@gmail.com> | 2017-11-29 12:27:04 +0300 |
---|---|---|
committer | Kirill Volinsky <Mataes2007@gmail.com> | 2017-11-29 12:27:04 +0300 |
commit | 4b47e5a4bb656ebb5bd493d1ad6f79eaf4f298e1 (patch) | |
tree | e3cd7797bb7bff6375e3c93e614eb41620371c70 /libs/Pcre16/src/pcre_exec.c | |
parent | 89f3cf8bbb9dc1fa0fe72f6af6638ac086c7e011 (diff) |
Pcre16: lib updated to 8.41
Diffstat (limited to 'libs/Pcre16/src/pcre_exec.c')
-rw-r--r-- | libs/Pcre16/src/pcre_exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/Pcre16/src/pcre_exec.c b/libs/Pcre16/src/pcre_exec.c index 5cff0d62a6..1a9bdd546e 100644 --- a/libs/Pcre16/src/pcre_exec.c +++ b/libs/Pcre16/src/pcre_exec.c @@ -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 |