summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-06-19 17:22:23 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-06-19 17:22:23 +0000
commitca04da08a2bb281916a1130c43e547887a2880cb (patch)
tree96db2d4f7e5d81e35eb801ba43b902e3de38ebc3 /regcomp.c
parent34f407e2f087b82259d6fc2a6de96027e6f8ddf6 (diff)
downloadperl-ca04da08a2bb281916a1130c43e547887a2880cb.tar.gz
update repository copy of Asmdata.pm after `perl bytecode.pl`
p4raw-id: //depot/perl@1154
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index 45f1e9a91f..2b71d99a40 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -267,6 +267,10 @@ study_chunk(regnode **scanp, I32 *deltap, regnode *last, scan_data_t *data, U32
/* Allow dumping */
n = scan + (*OPERAND(scan) + 2 - 1)/sizeof(regnode) + 2;
while (n <= stop) {
+ /* Purify reports a benign UMR here sometimes, because we
+ * don't initialize the OP() slot of a node when that node
+ * is occupied by just the trailing null of the string in
+ * an EXACT node */
if (regkind[(U8)OP(n)] != NOTHING || OP(n) == NOTHING) {
OP(n) = OPTIMIZED;
NEXT_OFF(n) = 0;