summaryrefslogtreecommitdiffstats
path: root/XS.xs
diff options
context:
space:
mode:
Diffstat (limited to 'XS.xs')
-rw-r--r--XS.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XS.xs b/XS.xs
index d7f6c9a..3c81e22 100644
--- a/XS.xs
+++ b/XS.xs
@@ -598,7 +598,7 @@ name(self)
CODE:
if (!sv_isobject(self))
croak("Can't call name as a class method");
- if (slot = hv_fetch_ent((HV*)SvRV(self), name_key, 0, name_hash)) {
+ if ((slot = hv_fetch_ent((HV*)SvRV(self), name_key, 0, name_hash))) {
RETVAL = SvREFCNT_inc_simple_NN(HeVAL(slot));
}
else {