summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-28 23:04:04 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-28 23:04:04 -0800
commit7355df7e69464cc1b7c5ce29234ddbcddec74500 (patch)
tree3d3e154ab4467a0cd3c372e46425ae1d9976e2d0 /perl.c
parente77511d262dd01fc8b8b509019091193efc59239 (diff)
downloadperl-7355df7e69464cc1b7c5ce29234ddbcddec74500.tar.gz
Croak when setting a tied @DB::args
In commit f8c105437 I stopped the setting of a tied @DB::args from crashing, by untying the array. Untying an array automatically with- out saying anything seems a little too much like action at a distance. For now, let’s just croak, as we can always change it later once we decide what should happen. At least that’s better than crashing.
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 73e1073c63..d50116ba86 100644
--- a/perl.c
+++ b/perl.c
@@ -3890,7 +3890,7 @@ Perl_init_dbargs(pTHX)
"leak" until global destruction. */
av_clear(args);
if (SvTIED_mg((const SV *)args, PERL_MAGIC_tied))
- sv_unmagic((SV *)args, PERL_MAGIC_tied);
+ Perl_croak(aTHX_ "Cannot set tied @DB::args");
}
AvREIFY_only(PL_dbargs);
}