summaryrefslogtreecommitdiff
path: root/src/pcre2_match.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-11-23 18:38:38 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-11-23 18:38:38 +0000
commit469ce4c0cdbb50172723c20b6ce2590a5e593023 (patch)
tree59e68ed0cc94d6367c7d19e230a778b58a89e46b /src/pcre2_match.c
parented4ed4376d5c874b42ca5817e91189b6ca1c7298 (diff)
downloadpcre2-469ce4c0cdbb50172723c20b6ce2590a5e593023.tar.gz
More documentation and test updates.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@158 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_match.c')
-rw-r--r--src/pcre2_match.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pcre2_match.c b/src/pcre2_match.c
index b3dc0c3..346a796 100644
--- a/src/pcre2_match.c
+++ b/src/pcre2_match.c
@@ -6459,12 +6459,8 @@ multiunit character. */
#ifdef SUPPORT_UNICODE
if (utf && (options & PCRE2_NO_UTF_CHECK) == 0)
{
- match_data->rc = PRIV(valid_utf)(subject, length, &(match_data->rightchar));
- if (match_data->rc != 0)
- {
- match_data->leftchar = 0;
- return match_data->rc;
- }
+ match_data->rc = PRIV(valid_utf)(subject, length, &(match_data->startchar));
+ if (match_data->rc != 0) return match_data->rc;
#if PCRE2_CODE_UNIT_WIDTH != 32
if (start_offset > 0 && start_offset < length &&
NOT_FIRSTCHAR(subject[start_offset]))