ports/www/p5-CGI-SpeedyCGI/files/patch-src__speedy_perl.c
Olli Hauer 429a258c73 - add stage support
- use modern OPTION syntax
- remove useless PERL_LEVEL check (meanwhile always >= 501000)
- regenerate patch files so they match the `make makepatch' naming schema
- add LICENSE (GPLv2)
- remove BROKEN ...

with hat apache@
2014-04-15 13:28:06 +00:00

15 lines
496 B
C

Author: Niko Tyni <ntyni@debian.org>
Description: Closes: #537996
The SvIV call crashes in on Perl 5.10.0 when warnings are
enabled and the value is undef.
--- src/speedy_perl.c
+++ src/speedy_perl.c
@@ -818,7 +818,7 @@
my_call_sv(get_perlvar(&PERLVAR_RESET_GLOBALS));
/* Copy option values in from the perl vars */
- if (SvIV(PERLVAL_OPTS_CHANGED)) {
+ if (SvTRUE(PERLVAL_OPTS_CHANGED)) {
int i;
for (i = 0; i < SPEEDY_NUMOPTS; ++i) {
OptRec *o = speedy_optdefs + i;