summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorPaul Marquess <paul.marquess@btinternet.com>1997-11-20 23:12:09 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-11-21 10:31:29 +0000
commitff2faa2b5a0809a5124aa90fc1d07503e49a73fb (patch)
treefdd4435574a903c08be4d579e8bb3d41a387fe51 /toke.c
parenteb1cfdd6b0a7e7a6918084a3828c98f88804c32d (diff)
downloadperl-ff2faa2b5a0809a5124aa90fc1d07503e49a73fb.tar.gz
Filter patch to toke.c:
Subject: Tiny core patch for source filters p4raw-id: //depot/perl@273
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/toke.c b/toke.c
index 00825b2e90..de31a41dd3 100644
--- a/toke.c
+++ b/toke.c
@@ -1109,9 +1109,8 @@ filter_del(filter_t funcp)
if (!rsfp_filters || AvFILL(rsfp_filters)<0)
return;
/* if filter is on top of stack (usual case) just pop it off */
- if (IoDIRP(FILTER_DATA(0)) == (void*)funcp){
- /* sv_free(av_pop(rsfp_filters)); */
- sv_free(av_shift(rsfp_filters));
+ if (IoDIRP(FILTER_DATA(AvFILL(rsfp_filters))) == (void*)funcp){
+ sv_free(av_pop(rsfp_filters));
return;
}