summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>1998-05-27 21:28:54 -0400
committerGurusamy Sarathy <gsar@cpan.org>1998-06-10 06:55:20 +0000
commit5f4b28b29039444aa4497be41d052e0fe0128ede (patch)
treedfa6ec591404f190faee95eb72958e6bffd80a56 /regexec.c
parentefb5cf875092b6297aea6e0f7a29957dd7ff8558 (diff)
downloadperl-5f4b28b29039444aa4497be41d052e0fe0128ede.tar.gz
Re: 5.004_65 uninitialized variable regexec.c (2)
p4raw-id: //depot/perl@1101
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index a38e97d15c..ac9f37b827 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1283,7 +1283,7 @@ regmatch(regnode *prog)
minmod = 0;
if (ln && regrepeat_hard(scan, ln, &l) < ln)
sayNO;
- if (l == 0 && n >= ln
+ if (ln && l == 0 && n >= ln
/* In fact, this is tricky. If paren, then the
fact that we did/didnot match may influence
future execution. */
@@ -1301,6 +1301,7 @@ regmatch(regnode *prog)
} else
c1 = c2 = -1000;
REGCP_SET;
+ /* This may be improved if l == 0. */
while (n >= ln || (n == REG_INFTY && ln > 0 && l)) { /* ln overflow ? */
/* If it could work, try it. */
if (c1 == -1000 ||