summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorAlex Vandiver <alexmv@mit.edu>2003-05-02 02:45:05 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-05-12 21:49:21 +0000
commite27ad1f20b87bf08f3461d0be498f8d4da22a576 (patch)
treec42d11b1dcf1a112af0ecb9f209acb0f8b67e145 /pp_hot.c
parentf9738a7f833dee4b6953b05d93d3f222f78be370 (diff)
downloadperl-e27ad1f20b87bf08f3461d0be498f8d4da22a576.tar.gz
Re: Bug stomping fun. [PATCH: bug #1016]
Message-Id: <1051872303.26203.104.camel@supox> (plus perldiag nit) p4raw-id: //depot/perl@19505
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 926a1f84c8..fc2b9c5925 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -3024,7 +3024,11 @@ S_method_common(pTHX_ SV* meth, U32* hashp)
/* the method name is unqualified or starts with SUPER:: */
packname = sep ? CopSTASHPV(PL_curcop) :
stash ? HvNAME(stash) : packname;
- packlen = strlen(packname);
+ if (!packname)
+ Perl_croak(aTHX_
+ "Can't use anonymous symbol table for method lookup");
+ else
+ packlen = strlen(packname);
}
else {
/* the method name is qualified */