This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f72e1e
)
dist/Data-Dumper: switch to using SvPVCLEAR()
author
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 08:56:00 +0000
(10:56 +0200)
committer
Yves Orton
<demerphq@gmail.com>
Wed, 19 Oct 2016 11:28:00 +0000
(13:28 +0200)
dist/Data-Dumper/Dumper.xs
patch
|
blob
|
blame
|
history
diff --git
a/dist/Data-Dumper/Dumper.xs
b/dist/Data-Dumper/Dumper.xs
index
017904e
..
25886d7
100644
(file)
--- 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 ? */