diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1997-11-28 13:26:52 -0500 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1997-12-23 21:01:04 +0000 |
commit | 53868620ef784266377b575754b281428137c6b0 (patch) | |
tree | 0d32b8d53a7201de3ce165bc86c0f8f575c06c9d /scope.c | |
parent | 873b9aae2ae149c3aa36ac5e24bfead9f393cfee (diff) | |
download | perl-53868620ef784266377b575754b281428137c6b0.tar.gz |
[win32] Trivial bugfix#1 from local repository
Message-Id: <199711282326.SAA15090@aatma.engin.umich.edu>
Subject: [PATCH] Re: [5.004_04 BUG] bless broke scoping?
p4raw-id: //depot/win32/perl@381
Diffstat (limited to 'scope.c')
-rw-r--r-- | scope.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -658,12 +658,12 @@ leave_scope(I32 base) } else { /* Someone has a claim on this, so abandon it. */ U32 padflags = SvFLAGS(sv) & (SVs_PADBUSY|SVs_PADMY|SVs_PADTMP); - SvREFCNT_dec(sv); /* Cast current value to the winds. */ switch (SvTYPE(sv)) { /* Console ourselves with a new value */ case SVt_PVAV: *(SV**)ptr = (SV*)newAV(); break; case SVt_PVHV: *(SV**)ptr = (SV*)newHV(); break; default: *(SV**)ptr = NEWSV(0,0); break; } + SvREFCNT_dec(sv); /* Cast current value to the winds. */ SvFLAGS(*(SV**)ptr) |= padflags; /* preserve pad nature */ } break; |