Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow sv = &PL_sv_undef; sv_set_undef(sv) to work
RT #130385 Technically sv = &PL_sv_undef; .... sv_set_undef(sv) is modifying a read-only variable and so should croak, but some XS code relies on the behaviour previous to the introduction of sv_set_undef(), where: sv = &PL_sv_undef; .... sv_setsv(sv, &PL_undef) silently succeeds (sv_setsv() returns immediately if src and dst addresses are the same).
- Loading branch information