aboutsummaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 9452f79..bcc33bd 100644
--- a/vm.c
+++ b/vm.c
@@ -220,6 +220,7 @@ static match_t *_match(def_t *defs, file_t *f, const char *str, vm_op_t *op, uns
}
match_t *p = _match(defs, f, str, op->args.repetitions.repeat_pat, flags, rec);
if (p == NULL) {
+ str = start;
destroy_match(&sep);
break;
}