summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xsutils.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xsutils.c b/xsutils.c
index 02fab51203..0f5989b3dd 100644
--- a/xsutils.c
+++ b/xsutils.c
@@ -253,11 +253,7 @@ usage:
rv = ST(0);
ST(0) = TARG;
- if (!SvOK(rv)) {
- ST(0) = &PL_sv_no;
- XSRETURN(1);
- }
- if (!SvROK(rv))
+ if (!(SvOK(rv) && SvROK(rv)))
goto usage;
sv = SvRV(rv);
sv_setpv(TARG, sv_reftype(sv, 0));