projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
perl 5.003_07: pod/perlvar.pod
[p5sagit/p5-mst-13.2.git]
/
universal.c
diff --git
a/universal.c
b/universal.c
index
61a536b
..
72087e6
100644
(file)
--- a/
universal.c
+++ b/
universal.c
@@
-154,9
+154,9
@@
static
XS(XS_UNIVERSAL_class)
{
dXSARGS;
- if(SvROK(ST(0))) {
+ if(SvROK(ST(0)) && SvOBJECT(SvRV(ST(0)))) {
SV *sv = sv_newmortal();
- sv_setpv(sv, HvNAME(SvSTASH(ST(0))));
+ sv_setpv(sv, HvNAME(SvSTASH(SvRV(ST(0)))));
ST(0) = sv;
}
XSRETURN(1);