Blame SOURCES/Storable-2.53-Upgrade-to-2.56.patch

1c0695
diff --git a/Storable.pm b/Storable.pm
1c0695
index 9d8b621..c8f6db1 100644
1c0695
--- a/Storable.pm
1c0695
+++ b/Storable.pm
1c0695
@@ -22,7 +22,7 @@ package Storable; @ISA = qw(Exporter);
1c0695
 
1c0695
 use vars qw($canonical $forgive_me $VERSION);
1c0695
 
1c0695
-$VERSION = '2.53';
1c0695
+$VERSION = '2.56';
1c0695
 
1c0695
 BEGIN {
1c0695
     if (eval { local $SIG{__DIE__}; require Log::Agent; 1 }) {
1c0695
@@ -979,43 +979,43 @@ such.
1c0695
 
1c0695
 Here are some code samples showing a possible usage of Storable:
1c0695
 
1c0695
-	use Storable qw(store retrieve freeze thaw dclone);
1c0695
+ use Storable qw(store retrieve freeze thaw dclone);
1c0695
 
1c0695
-	%color = ('Blue' => 0.1, 'Red' => 0.8, 'Black' => 0, 'White' => 1);
1c0695
+ %color = ('Blue' => 0.1, 'Red' => 0.8, 'Black' => 0, 'White' => 1);
1c0695
 
1c0695
-	store(\%color, 'mycolors') or die "Can't store %a in mycolors!\n";
1c0695
+ store(\%color, 'mycolors') or die "Can't store %a in mycolors!\n";
1c0695
 
1c0695
-	$colref = retrieve('mycolors');
1c0695
-	die "Unable to retrieve from mycolors!\n" unless defined $colref;
1c0695
-	printf "Blue is still %lf\n", $colref->{'Blue'};
1c0695
+ $colref = retrieve('mycolors');
1c0695
+ die "Unable to retrieve from mycolors!\n" unless defined $colref;
1c0695
+ printf "Blue is still %lf\n", $colref->{'Blue'};
1c0695
 
1c0695
-	$colref2 = dclone(\%color);
1c0695
+ $colref2 = dclone(\%color);
1c0695
 
1c0695
-	$str = freeze(\%color);
1c0695
-	printf "Serialization of %%color is %d bytes long.\n", length($str);
1c0695
-	$colref3 = thaw($str);
1c0695
+ $str = freeze(\%color);
1c0695
+ printf "Serialization of %%color is %d bytes long.\n", length($str);
1c0695
+ $colref3 = thaw($str);
1c0695
 
1c0695
 which prints (on my machine):
1c0695
 
1c0695
-	Blue is still 0.100000
1c0695
-	Serialization of %color is 102 bytes long.
1c0695
+ Blue is still 0.100000
1c0695
+ Serialization of %color is 102 bytes long.
1c0695
 
1c0695
 Serialization of CODE references and deserialization in a safe
1c0695
 compartment:
1c0695
 
1c0695
 =for example begin
1c0695
 
1c0695
-	use Storable qw(freeze thaw);
1c0695
-	use Safe;
1c0695
-	use strict;
1c0695
-	my $safe = new Safe;
1c0695
+ use Storable qw(freeze thaw);
1c0695
+ use Safe;
1c0695
+ use strict;
1c0695
+ my $safe = new Safe;
1c0695
         # because of opcodes used in "use strict":
1c0695
-	$safe->permit(qw(:default require));
1c0695
-	local $Storable::Deparse = 1;
1c0695
-	local $Storable::Eval = sub { $safe->reval($_[0]) };
1c0695
-	my $serialized = freeze(sub { 42 });
1c0695
-	my $code = thaw($serialized);
1c0695
-	$code->() == 42;
1c0695
+ $safe->permit(qw(:default require));
1c0695
+ local $Storable::Deparse = 1;
1c0695
+ local $Storable::Eval = sub { $safe->reval($_[0]) };
1c0695
+ my $serialized = freeze(sub { 42 });
1c0695
+ my $code = thaw($serialized);
1c0695
+ $code->() == 42;
1c0695
 
1c0695
 =for example end
1c0695
 
1c0695
diff --git a/Storable.xs b/Storable.xs
1c0695
index e7d0329..83cd001 100644
1c0695
--- a/Storable.xs
1c0695
+++ b/Storable.xs
1c0695
@@ -1667,6 +1667,7 @@ static void free_context(pTHX_ stcxt_t *cxt)
1c0695
 
1c0695
 	ASSERT(!cxt->s_dirty, ("clean context"));
1c0695
 	ASSERT(prev, ("not freeing root context"));
1c0695
+	assert(prev);
1c0695
 
1c0695
 	SvREFCNT_dec(cxt->my_sv);
1c0695
 	SET_STCXT(prev);
1c0695
@@ -6677,6 +6678,7 @@ SV *	obj
1c0695
  ALIAS:
1c0695
   net_mstore = 1
1c0695
  CODE:
1c0695
+  RETVAL = &PL_sv_undef;
1c0695
   if (!do_store(aTHX_ (PerlIO*) 0, obj, 0, ix, &RETVAL))
1c0695
     RETVAL = &PL_sv_undef;
1c0695
  OUTPUT: