diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-02-06 21:40:57 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-02-06 21:40:57 +0000 |
commit | 212542aaa22ee7b99a683bacf00fb323b1c34697 (patch) | |
tree | 7bea56471a199e4c022c494542b85dc8307ad4a4 /utf8.c | |
parent | 2eb429524bee19249b294c044e4a261d66f56867 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |