diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-03 14:24:29 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-03 14:24:29 +0000 |
commit | a663657d0cdfdd8f98eb85b84cbe10f066631c32 (patch) | |
tree | ca4f104cfa7b4409c27847c7b8004cb134aee245 /regcomp.c | |
parent | 289d3c6afee2ee5aaa9c3c2e0498d35fffce0173 (diff) | |
download | perl-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.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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))); } } } |