This commit is contained in:
Kyryl Melekhin
2021-09-07 18:13:46 +00:00
parent 05d24c95d2
commit 55e0ec31ac

5
pike.c
View File

@@ -433,9 +433,8 @@ int re_comp(rcode *prog, const char *re, int nsubs)
{ prog->gen = gen + 1; return state; } \ { prog->gen = gen + 1; return state; } \
#define newsub(init, copy) \ #define newsub(init, copy) \
s1 = freesub; \ if (freesub) \
if (s1) \ { s1 = freesub; freesub = (rsub*)s1->sub[0]; copy } \
{ freesub = (rsub*)s1->sub[0]; copy } \
else \ else \
{ s1 = (rsub*)&nsubs[rsubsize * subidx++]; init } \ { s1 = (rsub*)&nsubs[rsubsize * subidx++]; init } \