summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-07-26 13:21:30 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-07-26 13:21:30 (GMT)
commit6adf3b8c6c375d8b2ec61544abe1acf0a734e5c1 (patch)
treedc7fda1f50641956df70b65faf7ba9a1661861fd /generic
parent60ef39d24a8c8c1572ef6f2efad50706b49e0f06 (diff)
downloadtcl-6adf3b8c6c375d8b2ec61544abe1acf0a734e5c1.zip
tcl-6adf3b8c6c375d8b2ec61544abe1acf0a734e5c1.tar.gz
tcl-6adf3b8c6c375d8b2ec61544abe1acf0a734e5c1.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')
-rw-r--r--generic/regexec.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/generic/regexec.c b/generic/regexec.c
index c902209..205fcc2 100644
--- a/generic/regexec.c
+++ b/generic/regexec.c
@@ -512,12 +512,7 @@ cfindloop(
return er;
}
if ((shorter) ? end == estop : end == begin) {
- /*
- * No point in trying again.
- */
-
- *coldp = cold;
- return REG_NOMATCH;
+ break;
}
/*