summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2007-06-14 18:32:49 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-06-15 11:17:50 +0000
commitcef6ea9dde586d23f429802e75d22875450d6b68 (patch)
tree6108efb40b0e9fd59200d485887f63a2383dbcbb /sv.c
parentd05d9be5bb960a2dda35f9c10256ae0e8caaede8 (diff)
downloadperl-cef6ea9dde586d23f429802e75d22875450d6b68.tar.gz
miscellanea
Message-ID: <4671FA51.4070001@iki.fi> p4raw-id: //depot/perl@31388
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 4be849f601..02b4d020cf 100644
--- a/sv.c
+++ b/sv.c
@@ -467,7 +467,7 @@ do_clean_named_objs(pTHX_ SV *sv)
SvOBJECT(GvSV(sv))) ||
(GvAV(sv) && SvOBJECT(GvAV(sv))) ||
(GvHV(sv) && SvOBJECT(GvHV(sv))) ||
- (GvIO(sv) && SvOBJECT(GvIO(sv))) ||
+ (GvIO(sv) && GvIOp(sv) && SvOBJECT(GvIO(sv))) || /* In certain rare cases GvIOP(sv) can be NULL, which would make SvOBJECT(GvIO(sv)) dereference NULL. */
(GvCV(sv) && SvOBJECT(GvCV(sv))) )
{
DEBUG_D((PerlIO_printf(Perl_debug_log, "Cleaning named glob object:\n "), sv_dump(sv)));