]> git.pld-linux.org Git - packages/perl-Template-Toolkit.git/blame - perl-Template-Toolkit-stashXS.patch
- version 2.19
[packages/perl-Template-Toolkit.git] / perl-Template-Toolkit-stashXS.patch
CommitLineData
b53f29d8 1http://www.nntp.perl.org/group/perl.perl5.porters/2006/01/msg108750.html
2
3The following comes from http://rt.cpan.org/Public/Bug/Display.html?id=22506
4
5Still segfaults in assign() on t/tiedhash.t -- SvRV(root) starts returning
6null after a call to sv_isobject(root); this doesn't seem right and the code
7later doesn't expect it.
8
9
b6f54883 10On Mon Oct 23 11:25:30 2006, SMPETERS wrote:
11> A missing pair of parens causes Template-Toolkit 2.15 to fail to compile
12> with bleadperl. The following patch fixes the problem.
13>
14
15Actually, there is also some test code that fails an assertion, so, the
16following patch fixes the compilation and the test failures.
17
18--- xs/Stash.xs.old 2007-01-09 20:27:49.000000000 -0600
19+++ xs/Stash.xs 2007-01-09 22:06:30.000000000 -0600
b53f29d8 20@@ -499,7 +499,7 @@
21 }
22
23 /* drop-through if not an object or method not found */
24- switch SvTYPE(SvRV(root)) {
25+ switch (SvTYPE(SvRV(root))) {
26
27 case SVt_PVHV: /* HASH */
28 roothv = (HV *) SvRV(root);
b6f54883 29@@ -991,7 +991,7 @@
30 STRLEN jlen;
31 char *joint;
32
33- if ((svp = av_fetch(args, 0, FALSE)) != NULL) {
34+ if (args && (svp = av_fetch(args, 0, FALSE)) != NULL) {
35 joint = SvPV(*svp, jlen);
36 } else {
37 joint = " ";
This page took 0.031484 seconds and 4 git commands to generate.