summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2016-09-21 15:38:42 +0100
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2016-09-21 15:42:44 +0100
commitcf97b304d6039d9a3ad08c2e75ae3dbf3cf32dc8 (patch)
tree632ffeef6d10d5675c3a3012751964b5bec486b0 /doop.c
parent2c4188f3fe3f46d4ebe3f23a094a7cf96ebe87f1 (diff)
downloadperl-cf97b304d6039d9a3ad08c2e75ae3dbf3cf32dc8.tar.gz
Change sv_setpvn(…, "…", …) to sv_setpvs(…, "…")
The dual-life dists affected use Devel::PPPort, so can safely use sv_setpvs() even though it wasn't added until Perl v5.10.0.
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doop.c b/doop.c
index e6c7fe4aa7..79cf4b6006 100644
--- a/doop.c
+++ b/doop.c
@@ -1008,7 +1008,7 @@ Perl_do_vop(pTHX_ I32 optype, SV *sv, SV *left, SV *right)
PERL_ARGS_ASSERT_DO_VOP;
if (sv != left || (optype != OP_BIT_AND && !SvOK(sv)))
- sv_setpvn(sv, "", 0); /* avoid undef warning on |= and ^= */
+ sv_setpvs(sv, ""); /* avoid undef warning on |= and ^= */
if (sv == left) {
lsave = lc = SvPV_force_nomg(left, leftlen);
}