This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
sv.c: Make sv_pvn_force_flags guard against SV_UNDEF_RETURNS_NULL.
authorBrian Fraser <fraserbn@gmail.com>
Sat, 26 May 2012 01:30:02 +0000 (22:30 -0300)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 26 May 2012 21:46:21 +0000 (14:46 -0700)
commit5204593b74eb08fdcf425b7e9802a23ae74ee094
tree536c06c38bd21ac921ea6aabf1f628e269b22bd6
parent0371b58d0ffd926f73bccad39dd87fdd5e3cdf2f
sv.c: Make sv_pvn_force_flags guard against SV_UNDEF_RETURNS_NULL.

Previously, if SV_UNDEF_RETURNS_NULL was passed to sv_pvn_force_flags,
it would call sv_2pv_flags with that flag, and get back a NULL instead
of a char *, which lead to issues.
This commit makes sv_pvn_force_flags use an empty string in that case.
sv.c