diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-02 19:39:55 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-02 19:39:55 +0000 |
commit | 1236053a2c722e2b9e93af4bb14c92036416d727 (patch) | |
tree | 3540deaac4bd793ee952789d91058c091c3d1865 /sv.c | |
parent | 93578b34124e8a3b976cd7f68c60e871e698c9d5 (diff) | |
download | perl-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); |