summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2016-10-19 11:01:08 +0200
committerYves Orton <demerphq@gmail.com>2016-10-19 13:28:00 +0200
commit854da30f7a12360c4116d0fe1bbfd4154f69ba24 (patch)
treebba3afb77649b82a23c2500660284093b9c60e16 /perl.h
parent2808d9d83c4e997cfe6f2f74160017418f7db638 (diff)
downloadperl-854da30f7a12360c4116d0fe1bbfd4154f69ba24.tar.gz
perl.[ch]: switch to using SvPVCLEAR() and string constant friendly macros
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 8444bc047a..a843a60b72 100644
--- a/perl.h
+++ b/perl.h
@@ -1277,7 +1277,7 @@ EXTERN_C char *crypt(const char *, const char *);
*svp = newSVpvs(""); \
} else { \
SV *const errsv = *svp; \
- sv_setpvs(errsv, ""); \
+ SvPVCLEAR(errsv); \
SvPOK_only(errsv); \
if (SvMAGICAL(errsv)) { \
mg_free(errsv); \