diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-04-23 16:36:31 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-04-23 16:36:31 +0000 |
commit | db187877da40b107958f433a7167f7f85c7162d2 (patch) | |
tree | 23f1a829f29949b285b125f423d3ace9cdbe85cf /pp_pack.c | |
parent | 0ccab2bc1ed9d8d9446194047fec5d4b241a67bf (diff) | |
download | perl-db187877da40b107958f433a7167f7f85c7162d2.tar.gz |
Remove the unnecessary allocation of and assignment to hunk[3], as the
perl API functions called don't need a NUL terminated string.
p4raw-id: //depot/perl@31038
Diffstat (limited to 'pp_pack.c')
-rw-r--r-- | pp_pack.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2106,9 +2106,8 @@ S_unpack_rec(pTHX_ tempsym_t* symptr, const char *s, const char *strbeg, const c if (utf8) { while (next_uni_uu(aTHX_ &s, strend, &len)) { I32 a, b, c, d; - char hunk[4]; + char hunk[3]; - hunk[3] = '\0'; while (len > 0) { next_uni_uu(aTHX_ &s, strend, &a); next_uni_uu(aTHX_ &s, strend, &b); @@ -2135,9 +2134,8 @@ S_unpack_rec(pTHX_ tempsym_t* symptr, const char *s, const char *strbeg, const c } else { while (s < strend && *s > ' ' && ISUUCHAR(*s)) { I32 a, b, c, d; - char hunk[4]; + char hunk[3]; - hunk[3] = '\0'; len = PL_uudmap[*(U8*)s++] & 077; while (len > 0) { if (s < strend && ISUUCHAR(*s)) |