From 8a3a452ea9ff80606db3f120ecb05447197c3f53 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Fri, 10 Feb 2017 16:42:14 +0000 Subject: [PATCH] Small code tidy to make it more understandable. --- src/pcre2_study.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pcre2_study.c b/src/pcre2_study.c index 89715ab..5a4d520 100644 --- a/src/pcre2_study.c +++ b/src/pcre2_study.c @@ -195,8 +195,8 @@ for (;;) case OP_SCBRA: case OP_CBRAPOS: case OP_SCBRAPOS: - recno = dupcapused? prev_cap_recno - 1 : (int)GET2(cc, 1+LINK_SIZE); - if (recno != prev_cap_recno) + recno = (int)GET2(cc, 1+LINK_SIZE); + if (dupcapused || recno != prev_cap_recno) { prev_cap_recno = recno; prev_cap_d = find_minlength(re, cc, startcode, utf, recurses, countptr,