diff options
author | dgp <dgp@noemail.net> | 2013-07-26 13:24:19 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2013-07-26 13:24:19 (GMT) |
commit | a131e49614518289f49ec2a6c51e42c3fa3a1cd0 (patch) | |
tree | 2a09acf65149869145c8b4cc2517188936a33137 /generic/regexec.c | |
parent | 5b89b55899e9cc9059a19d088889a1678ece8077 (diff) | |
parent | 8e71703c3dbd648906c95aaecf21e4488c7387bc (diff) | |
download | tcl-a131e49614518289f49ec2a6c51e42c3fa3a1cd0.zip tcl-a131e49614518289f49ec2a6c51e42c3fa3a1cd0.tar.gz tcl-a131e49614518289f49ec2a6c51e42c3fa3a1cd0.tar.bz2 |
[6585b21ca8] [regexp {(\w).*?\1} abb] failed to match. Thanks to Tom Lane for passing on the discovery in Postgres.
FossilOrigin-Name: bff43cd4c335dd760353061e88e300b0f18e4e8e
Diffstat (limited to 'generic/regexec.c')
-rw-r--r-- | generic/regexec.c | 7 |
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; } /* |