summaryrefslogtreecommitdiff
path: root/xsutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'xsutils.c')
-rw-r--r--xsutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xsutils.c b/xsutils.c
index 7b968cf625..b22a263bbc 100644
--- a/xsutils.c
+++ b/xsutils.c
@@ -61,7 +61,7 @@ modify_SV_attributes(pTHX_ SV *sv, SV **retlist, SV **attrlist, int numattrs)
for (nret = 0 ; numattrs && (attr = *attrlist++); numattrs--) {
STRLEN len;
- const char *name = SvPV(attr, len);
+ const char *name = SvPV_const(attr, len);
const bool negated = (*name == '-');
if (negated) {