summaryrefslogtreecommitdiff
path: root/mro.c
diff options
context:
space:
mode:
Diffstat (limited to 'mro.c')
-rw-r--r--mro.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mro.c b/mro.c
index 7074e7ab72..37573f1eec 100644
--- a/mro.c
+++ b/mro.c
@@ -455,10 +455,8 @@ Perl_mro_isa_changed_in(pTHX_ HV* stash)
bool is_universal;
struct mro_meta * meta;
- const char * const stashname = stash ? HvNAME_get(stash) : NULL;
- const STRLEN stashname_len = stash ? HvNAMELEN_get(stash) : 0;
-
- if(!stash) return;
+ const char * const stashname = HvNAME_get(stash);
+ const STRLEN stashname_len = HvNAMELEN_get(stash);
if(!stashname)
Perl_croak(aTHX_ "Can't call mro_isa_changed_in() on anonymous symbol table");