diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-06-04 19:14:33 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-06-04 19:29:04 -0700 |
commit | 4ab5bd5f1ac4d396ccef2207abef0c1e6fe14b66 (patch) | |
tree | 611d1041c686edb69557bfdfd73d7c1ca43fd077 /ext/Devel-Peek/Peek.xs | |
parent | 47d6f3d6640ee5a8c3c6670383171a78d34abbaa (diff) | |
download | perl-4ab5bd5f1ac4d396ccef2207abef0c1e6fe14b66.tar.gz |
Make Devel::Peek::fill_mstats work on COWs
Diffstat (limited to 'ext/Devel-Peek/Peek.xs')
-rw-r--r-- | ext/Devel-Peek/Peek.xs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/Devel-Peek/Peek.xs b/ext/Devel-Peek/Peek.xs index 3dcba4780e..5e8deb9830 100644 --- a/ext/Devel-Peek/Peek.xs +++ b/ext/Devel-Peek/Peek.xs @@ -161,6 +161,7 @@ fill_mstats(SV *sv, int level) { dTHX; + if (SvIsCOW(sv)) sv_force_normal(sv); if (SvREADONLY(sv)) croak("Cannot modify a readonly value"); SvGROW(sv, sizeof(struct mstats_buffer)+1); |