Minor code tidy.

This commit is contained in:
Philip.Hazel 2018-04-21 16:43:49 +00:00
parent f7187b38c7
commit fb413521fc
2 changed files with 4 additions and 2 deletions

View File

@ -50,6 +50,8 @@ offset is set zero for early errors.
(c) Support for non-C99 snprintf() that returns -1 in the overflow case. (c) Support for non-C99 snprintf() that returns -1 in the overflow case.
11. Minor tidy of pcre2_dfa_matgch() code.
Version 10.31 12-February-2018 Version 10.31 12-February-2018
------------------------------ ------------------------------

View File

@ -2615,8 +2615,6 @@ for (;;)
case OP_COND: case OP_COND:
case OP_SCOND: case OP_SCOND:
{ {
PCRE2_SIZE local_offsets[1000];
int local_workspace[1000];
int codelink = (int)GET(code, 1); int codelink = (int)GET(code, 1);
PCRE2_UCHAR condcode; PCRE2_UCHAR condcode;
@ -2672,6 +2670,8 @@ for (;;)
else else
{ {
PCRE2_SIZE local_offsets[2];
int local_workspace[1000];
int rc; int rc;
PCRE2_SPTR asscode = code + LINK_SIZE + 1; PCRE2_SPTR asscode = code + LINK_SIZE + 1;
PCRE2_SPTR endasscode = asscode + GET(asscode, 1); PCRE2_SPTR endasscode = asscode + GET(asscode, 1);