@@ -4543,7 +4543,7 @@ static SV *retrieve_blessed(pTHX_ stcxt_t *cxt, const char *cname)
4543
4543
* Retrieve object and bless it.
4544
4544
*/
4545
4545
4546
- sv = retrieve (aTHX_ cxt , classname ); /* First SV which is SEEN will be blessed */
4546
+ sv = retrieve (aTHX_ cxt , classname ); /* First SV which is SEEN will be blessed */
4547
4547
if (malloced_classname )
4548
4548
Safefree (malloced_classname );
4549
4549
@@ -5537,9 +5537,9 @@ static SV *retrieve_vstring(pTHX_ stcxt_t *cxt, const char *cname)
5537
5537
TRACEME (("retrieve_vstring (#%d), len = %d" , (int )cxt -> tagnum , len ));
5538
5538
5539
5539
READ (s , len );
5540
-
5541
5540
sv = retrieve (aTHX_ cxt , cname );
5542
-
5541
+ if (!sv )
5542
+ return (SV * ) 0 ; /* Failed */
5543
5543
sv_magic (sv ,NULL ,PERL_MAGIC_vstring ,s ,len );
5544
5544
/* 5.10.0 and earlier seem to need this */
5545
5545
SvRMAGICAL_on (sv );
@@ -5572,7 +5572,8 @@ static SV *retrieve_lvstring(pTHX_ stcxt_t *cxt, const char *cname)
5572
5572
SAFEPVREAD (s , len , s );
5573
5573
5574
5574
sv = retrieve (aTHX_ cxt , cname );
5575
-
5575
+ if (!sv )
5576
+ return (SV * ) 0 ; /* Failed */
5576
5577
sv_magic (sv ,NULL ,PERL_MAGIC_vstring ,s ,len );
5577
5578
/* 5.10.0 and earlier seem to need this */
5578
5579
SvRMAGICAL_on (sv );
@@ -6445,7 +6446,7 @@ static SV *old_retrieve_array(pTHX_ stcxt_t *cxt, const char *cname)
6445
6446
if (c != SX_ITEM )
6446
6447
(void ) retrieve_other (aTHX_ cxt , 0 );/* Will croak out */
6447
6448
TRACEME (("(#%d) item" , (int )i ));
6448
- sv = retrieve (aTHX_ cxt , 0 ); /* Retrieve item */
6449
+ sv = retrieve (aTHX_ cxt , 0 ); /* Retrieve item */
6449
6450
if (!sv )
6450
6451
return (SV * ) 0 ;
6451
6452
if (av_store (av , i , sv ) == 0 )
0 commit comments