From 18e997ec52d4cfa156585419f80719516a12351b Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Wed, 24 Oct 2001 15:58:51 +0000 Subject: 16038,16041,16124: Fix bad caching of patterns. --- Src/cond.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/cond.c') diff --git a/Src/cond.c b/Src/cond.c index 5593097a0..b34a14be1 100644 --- a/Src/cond.c +++ b/Src/cond.c @@ -202,11 +202,11 @@ evalcond(Estate state) char *opat; int save; - right = opat = dupstring(ecrawstr(state->prog, state->pc, + right = dupstring(opat = ecrawstr(state->prog, state->pc, &htok)); if (htok) singsub(&right); - save = (state->prog->alloc != EA_HEAP && + save = (!(state->prog->flags & EF_HEAP) && !strcmp(opat, right) && pprog != dummy_patprog2); if (!(pprog = patcompile(right, (save ? PAT_ZDUP : PAT_STATIC), -- cgit 1.4.1