From e046b0f284831a0dbc4aebba81c2ab2dad9c68d3 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Wed, 19 Oct 2016 10:56:00 +0200 Subject: [PATCH 1/1] dist/Data-Dumper: switch to using SvPVCLEAR() --- dist/Data-Dumper/Dumper.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/Data-Dumper/Dumper.xs b/dist/Data-Dumper/Dumper.xs index 017904e..25886d7 100644 --- a/dist/Data-Dumper/Dumper.xs +++ b/dist/Data-Dumper/Dumper.xs @@ -1575,7 +1575,7 @@ Data_Dumper_Dumpxs(href, ...) sv_catpvs(retval, ";"); sv_catsv(retval, style.sep); } - sv_setpvs(valstr, ""); + SvPVCLEAR(valstr); if (gimme == G_ARRAY) { XPUSHs(sv_2mortal(retval)); if (i < imax) /* not the last time thro ? */ -- 1.8.3.1