summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/pattern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/pattern.c b/Src/pattern.c
index 158bfd560..1f2e94bd9 100644
--- a/Src/pattern.c
+++ b/Src/pattern.c
@@ -677,8 +677,6 @@ patcompile(char *exp, int inflags, char **endexp)
 			    p = (Patprog)patout;
 			    pd = patout - oldpatout;
 			    opnd += pd;
-			    pscan += pd;
-			    next += pd;
 			    dst = patout + startoff;
 			}
 
@@ -690,6 +688,8 @@ patcompile(char *exp, int inflags, char **endexp)
 				*dst++ = *opnd++;
 			    }
 			}
+			/* Only one string in a PAT_PURES, so now done. */
+			break;
 		    }
 		}
 		p->size = dst - patout;