summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-30 11:40:37 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-30 11:40:37 +0000
commitd0043bd135485a532d9aee2280acc8b2d782baa4 (patch)
tree221557e4e0e1619fa6f56f6d6112e1a560cb19ab /regcomp.c
parente6830b1398c4e7ce4800aa72b564ebd81702e14c (diff)
downloadperl-d0043bd135485a532d9aee2280acc8b2d782baa4.tar.gz
Replace newSVpv(...,0) with newSVpvn where we know the length.
p4raw-id: //depot/perl@25022
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 23bc9b902a..d2526b7276 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -765,7 +765,7 @@ and would end up looking like:
DEBUG_TRIE_COMPILE_r({ \
SV *tmp; \
if ( UTF ) { \
- tmp = newSVpv( "", 0 ); \
+ tmp = newSVpvn( "", 0 ); \
pv_uni_display( tmp, uc, len, 60, UNI_DISPLAY_REGEX ); \
} else { \
tmp = Perl_newSVpvf_nocontext( "%c", (int)uvc ); \