From: John Peacock Date: Wed, 13 Jul 2005 14:24:06 +0000 (-0400) Subject: was Re: perldoc segfaulting in XS_UNIVERSAL_VERSION X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0008872a8961cdd40a28b04aebc8346bdfb7bf39;p=p5sagit%2Fp5-mst-13.2.git was Re: perldoc segfaulting in XS_UNIVERSAL_VERSION Message-ID: <42D55C46.5030905@rowman.com> Date: Wed, 13 Jul 2005 14:24:06 -0400 p4raw-id: //depot/perl@25141 --- diff --git a/universal.c b/universal.c index 507ab14..4506f77 100644 --- a/universal.c +++ b/universal.c @@ -338,7 +338,7 @@ XS(XS_UNIVERSAL_VERSION) gvp = pkg ? (GV**)hv_fetch(pkg,"VERSION",7,FALSE) : Null(GV**); - if (gvp && isGV(gv = *gvp) && SvOK(sv = GvSV(gv))) { + if (gvp && isGV(gv = *gvp) && (sv = GvSV(gv)) && SvOK(sv)) { SV *nsv = sv_newmortal(); sv_setsv(nsv, sv); sv = nsv;