summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-02-23 00:01:07 +0100
committerAbhijit Menon-Sen <ams@wiw.org>2002-02-22 21:07:02 +0000
commitfb24441d6a82db2d4953db0f33fb07df71b278dd (patch)
tree15832d049252dadd8d1cf347e05eff9ecc8d2a97 /sv.c
parent316fff229640344aaf20a4cc3a8833b7f4162f38 (diff)
downloadperl-fb24441d6a82db2d4953db0f33fb07df71b278dd.tar.gz
Re: Prototype checking on assignment of coderef to typeglob
Message-Id: <20020222230107.A15069@rafael> p4raw-id: //depot/perl@14837
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 217df878b7..89c6e20235 100644
--- a/sv.c
+++ b/sv.c
@@ -3752,8 +3752,9 @@ Perl_sv_setsv_flags(pTHX_ SV *dstr, register SV *sstr, I32 flags)
GvENAME((GV*)dstr));
}
}
- cv_ckproto(cv, (GV*)dstr,
- SvPOK(sref) ? SvPVX(sref) : Nullch);
+ if (!intro)
+ cv_ckproto(cv, (GV*)dstr,
+ SvPOK(sref) ? SvPVX(sref) : Nullch);
}
GvCV(dstr) = (CV*)sref;
GvCVGEN(dstr) = 0; /* Switch off cacheness. */