diff options
author | David Mitchell <davem@iabyn.com> | 2016-12-25 12:14:10 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-12-25 18:02:53 +0000 |
commit | 523e5ba86c48932471bfe24c81d5c860ade5fb44 (patch) | |
tree | 62f468576eb3af8843bcef9425eff5ef86e08188 /sv.c | |
parent | 4ee2b8db537d28b77d127a86307e426289e5c8b5 (diff) | |
download | perl-523e5ba86c48932471bfe24c81d5c860ade5fb44.tar.gz |
fix (*glob) = ()
RT #130385
The new sv_set_undef() function added by me with v5.25.7-12-ge03e82a
didn't handle undeffing a glob correctly, and gave an assertion failure.
Fix it to behave more exactly like (sv_setsv(sv, &PL_sv_undef),
which it is documented as being identical to.
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4834,8 +4834,8 @@ Perl_sv_set_undef(pTHX_ SV *sv) if (isGV_with_GP(sv)) Perl_ck_warner(aTHX_ packWARN(WARN_MISC), "Undefined value assigned to typeglob"); - - SvOK_off(sv); + else + SvOK_off(sv); } |