summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-06-29 22:15:45 +0100
committerNicholas Clark <nick@ccl4.org>2010-06-30 09:11:17 +0100
commit5da80af416fe1cadcc86dcb161e4297f0ea37c63 (patch)
tree135a5c8fa123dc5e6749a09e26b2de488a8f7575 /toke.c
parent5bb89d25eef36595e8b2275f7b0739655e3535d5 (diff)
downloadperl-5da80af416fe1cadcc86dcb161e4297f0ea37c63.tar.gz
In Perl_filter_del(), no need to NULL IoANY(datasv).
Perl_sv_clear() understands the IOf_FAKE_DIRP flag, and when set won't treat IoANY() as a a pointer to a directory handle that needs closing.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index 7da7ab9469..ac00450398 100644
--- a/toke.c
+++ b/toke.c
@@ -3757,8 +3757,6 @@ Perl_filter_del(pTHX_ filter_t funcp)
/* if filter is on top of stack (usual case) just pop it off */
datasv = FILTER_DATA(AvFILLp(PL_rsfp_filters));
if (IoANY(datasv) == FPTR2DPTR(void *, funcp)) {
- IoFLAGS(datasv) &= ~IOf_FAKE_DIRP;
- IoANY(datasv) = (void *)NULL;
sv_free(av_pop(PL_rsfp_filters));
return;