summaryrefslogtreecommitdiffstats
path: root/generic/regexec.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-07-26 13:24:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-07-26 13:24:19 (GMT)
commit18186af2e6c5db9ce74e112be489bae4147e5c9f (patch)
tree37d427a52d78b461e5f5941b2dd214434cd979af /generic/regexec.c
parent6241ad2cd853f7fe54064a7e2bf5613926cf160a (diff)
parentc86bd1b78ad2eec0899db1c0927048cf9f0ed435 (diff)
downloadtcl-18186af2e6c5db9ce74e112be489bae4147e5c9f.zip
tcl-18186af2e6c5db9ce74e112be489bae4147e5c9f.tar.gz
tcl-18186af2e6c5db9ce74e112be489bae4147e5c9f.tar.bz2
[6585b21ca8] [regexp {(\w).*?\1} abb] failed to match. Thanks to Tom Lane for passing on the discovery in Postgres.
Diffstat (limited to 'generic/regexec.c')
-rw-r--r--generic/regexec.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/generic/regexec.c b/generic/regexec.c
index 9b6a693..ad4b6e6 100644
--- a/generic/regexec.c
+++ b/generic/regexec.c
@@ -504,12 +504,7 @@ complicatedFindLoop(
return er;
}
if ((shorter) ? end == estop : end == begin) {
- /*
- * No point in trying again.
- */
-
- *coldp = cold;
- return REG_NOMATCH;
+ break;
}
/*