This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
sv_utf8_upgrade_flags_grow(): Alloc extra byte if empty
authorKarl Williamson <khw@cpan.org>
Tue, 5 Feb 2019 05:09:31 +0000 (22:09 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 5 Feb 2019 16:31:45 +0000 (09:31 -0700)
commite2e3bb6ab2dc831e06e3f552bfafd7c66ad52179
tree595b4ae7413f656c7545d90ae5487593bb55e2d2
parentf9908fb6a0a784094ae5b2ec59d55803334ef798
sv_utf8_upgrade_flags_grow(): Alloc extra byte if empty

People may call this expecting that the 'extra' parameter is on top of
whatever is in there.  If something is in there, that already includes a
NUL, but if nothing is in there, for safety, add a byte to the request.
sv.c