summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-03 14:24:29 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-03 14:24:29 +0000
commita663657d0cdfdd8f98eb85b84cbe10f066631c32 (patch)
treeca4f104cfa7b4409c27847c7b8004cb134aee245 /regcomp.c
parent289d3c6afee2ee5aaa9c3c2e0498d35fffce0173 (diff)
downloadperl-a663657d0cdfdd8f98eb85b84cbe10f066631c32.tar.gz
Possible future bugs found by the creation of newSVpvn_flags().
But use newSVhek() in preference when possible. p4raw-id: //depot/perl@32813
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/regcomp.c b/regcomp.c
index e384ff5809..6d756132f4 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -5001,9 +5001,7 @@ Perl_reg_named_buff_nextkey(pTHX_ REGEXP * const r, const U32 flags)
}
}
if (parno || flags & RXapif_ALL) {
- STRLEN len;
- char *pv = HePV(temphe, len);
- return newSVpvn(pv,len);
+ return newSVhek(HeKEY_hek(temphe));
}
}
}
@@ -5059,9 +5057,7 @@ Perl_reg_named_buff_all(pTHX_ REGEXP * const r, const U32 flags)
}
}
if (parno || flags & RXapif_ALL) {
- STRLEN len;
- char *pv = HePV(temphe, len);
- av_push(av, newSVpvn(pv,len));
+ av_push(av, newSVhek(HeKEY_hek(temphe)));
}
}
}