summaryrefslogtreecommitdiff
path: root/gv.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-02 03:33:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-02 03:33:14 +0000
commit2035c5e8eb03b194190a7ef87630a0e4cc7c6251 (patch)
treefe4d44dc3bc9e8e9bed55d764d7ac46ffe51abff /gv.h
parent7e2b0cd5b0db692085efbcbe1098082cbcb19f50 (diff)
downloadperl-2035c5e8eb03b194190a7ef87630a0e4cc7c6251.tar.gz
New try at the Class::DBI core dump at global cleanup.
p4raw-id: //depot/perl@16325
Diffstat (limited to 'gv.h')
-rw-r--r--gv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gv.h b/gv.h
index 7db4ba0f5c..39b61feb81 100644
--- a/gv.h
+++ b/gv.h
@@ -42,7 +42,7 @@ Return the SV from the GV.
#define GvSV(gv) (GvGP(gv)->gp_sv)
#define GvREFCNT(gv) (GvGP(gv)->gp_refcnt)
-#define GvIO(gv) ((gv) && SvTYPE((SV*)gv) == SVt_PVGV ? GvIOp(gv) : 0)
+#define GvIO(gv) ((gv) && SvTYPE((SV*)gv) == SVt_PVGV && GvGP(gv) ? GvIOp(gv) : 0)
#define GvIOp(gv) (GvGP(gv)->gp_io)
#define GvIOn(gv) (GvIO(gv) ? GvIOp(gv) : GvIOp(gv_IOadd(gv)))