summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-02-06 21:40:57 +0000
committerNicholas Clark <nick@ccl4.org>2006-02-06 21:40:57 +0000
commit212542aaa22ee7b99a683bacf00fb323b1c34697 (patch)
tree7bea56471a199e4c022c494542b85dc8307ad4a4 /utf8.c
parent2eb429524bee19249b294c044e4a261d66f56867 (diff)
downloadperl-212542aaa22ee7b99a683bacf00fb323b1c34697.tar.gz
Given that the memory allocated in Perl_bytes_from_utf8 and
Perl_bytes_to_utf8 will immediately be written to, I see no need to allocate it zeroed. p4raw-id: //depot/perl@27112
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index d9533301ff..e3d8d09662 100644
--- a/utf8.c
+++ b/utf8.c
@@ -852,7 +852,7 @@ Perl_bytes_from_utf8(pTHX_ const U8 *s, STRLEN *len, bool *is_utf8)
*is_utf8 = 0;
- Newxz(d, (*len) - count + 1, U8);
+ Newx(d, (*len) - count + 1, U8);
s = start; start = d;
while (s < send) {
U8 c = *s++;
@@ -888,7 +888,7 @@ Perl_bytes_to_utf8(pTHX_ const U8 *s, STRLEN *len)
U8 *d;
U8 *dst;
- Newxz(d, (*len) * 2 + 1, U8);
+ Newx(d, (*len) * 2 + 1, U8);
dst = d;
while (s < send) {