summaryrefslogtreecommitdiff
path: root/xsutils.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-04-28 07:27:20 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-04-28 07:27:20 +0000
commit4694d0eaf09e23800ff4cc507408eb49b7fd0b3b (patch)
tree21ddc89f3f39a6bbbabdb5ff401190ee50bace6b /xsutils.c
parent7b9e3c00eb5e1b249b97c7eca281d6caed81b1b1 (diff)
downloadperl-4694d0eaf09e23800ff4cc507408eb49b7fd0b3b.tar.gz
attributes::reftype() doesn't work on tied argument
p4raw-id: //depot/perl@5984
Diffstat (limited to 'xsutils.c')
-rw-r--r--xsutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xsutils.c b/xsutils.c
index 0f5989b3dd..b4161b0d09 100644
--- a/xsutils.c
+++ b/xsutils.c
@@ -253,6 +253,8 @@ usage:
rv = ST(0);
ST(0) = TARG;
+ if (SvGMAGICAL(rv))
+ mg_get(rv);
if (!(SvOK(rv) && SvROK(rv)))
goto usage;
sv = SvRV(rv);