This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
whoops, Perl_magic_freearylen_p returns int
authorDave Mitchell <davem@fdisolutions.com>
Tue, 14 Jun 2005 17:24:18 +0000 (17:24 +0000)
committerDave Mitchell <davem@fdisolutions.com>
Tue, 14 Jun 2005 17:24:18 +0000 (17:24 +0000)
p4raw-id: //depot/perl@24844

mg.c

diff --git a/mg.c b/mg.c
index b2b0620..36ee9d6 100644 (file)
--- a/mg.c
+++ b/mg.c
@@ -1675,7 +1675,7 @@ Perl_magic_freearylen_p(pTHX_ SV *sv, MAGIC *mg)
 {
     /* during global destruction, mg_obj may already have been freed */
     if (PL_in_clean_all)
 {
     /* during global destruction, mg_obj may already have been freed */
     if (PL_in_clean_all)
-       return;
+       return 0;
 
     mg = mg_find (mg->mg_obj, PERL_MAGIC_arylen);
 
 
     mg = mg_find (mg->mg_obj, PERL_MAGIC_arylen);