summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-05-02 19:39:55 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-05-02 19:39:55 +0000
commit1236053a2c722e2b9e93af4bb14c92036416d727 (patch)
tree3540deaac4bd793ee952789d91058c091c3d1865 /sv.c
parent93578b34124e8a3b976cd7f68c60e871e698c9d5 (diff)
downloadperl-1236053a2c722e2b9e93af4bb14c92036416d727.tar.gz
add test case for change#3298
p4raw-link: @3298 on //depot/perl: 93578b34124e8a3b976cd7f68c60e871e698c9d5 p4raw-id: //depot/perl@3299
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sv.c b/sv.c
index 6068583d71..5772954c68 100644
--- a/sv.c
+++ b/sv.c
@@ -2737,9 +2737,9 @@ sv_clear(register SV *sv)
{
io_close((IO*)sv);
}
- if (IoDIRP((IO*)sv)) {
- PerlDir_close(IoDIRP((IO*)sv));
- IoDIRP((IO*)sv) = 0;
+ if (IoDIRP(sv)) {
+ PerlDir_close(IoDIRP(sv));
+ IoDIRP(sv) = 0;
}
Safefree(IoTOP_NAME(sv));
Safefree(IoFMT_NAME(sv));