summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-09-15 20:39:22 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-09-15 21:45:12 -0700
commit1d6bb9ae033c9dd42ee935e1458d658d0cca9183 (patch)
treeb501ec461dcb5843a627d1f8238e945cccff0591 /mg.c
parent07c325bb70eb5bf207be61e7fb078595d9e9d3c3 (diff)
downloadperl-1d6bb9ae033c9dd42ee935e1458d658d0cca9183.tar.gz
mg.c: Avoid reifying GV for undefined sig handler
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 4ed7c7a3ba..e18ec01197 100644
--- a/mg.c
+++ b/mg.c
@@ -3125,7 +3125,9 @@ Perl_sighandler(int sig)
if (!cv || !CvROOT(cv)) {
const HEK * const hek = gv
- ? GvENAME_HEK(gv)
+ ? GvENAME_HEK(gv)
+ : cv && CvNAMED(cv)
+ ? CvNAME_HEK(cv)
: cv && CvGV(cv) ? GvENAME_HEK(CvGV(cv)) : NULL;
if (hek)
Perl_ck_warner(aTHX_ packWARN(WARN_SIGNAL),