Subject: | Patch: Net::Gen (Net-ext) Gen.xs patch for Perl v5.10.0 |
Hi,
The attached patch fixes the problem reported in http://www.mail-
archive.com/cpan-testers@perl.org/msg997951.html
--- Gen.xs 2002-04-10 16:35:58.000000000 +0530
+++ Gen-new.xs 2008-12-12 21:34:49.344756000 +0530
@@ -146,7 +146,7 @@
CV *cv;
klen = strlen(name);
(void) hv_fetch(missing, name, klen, TRUE);
- cv = newXS(name, NULL, file); /* newSUB with no block */
+ cv = newXS(name, Perl_cv_undef, file); /* newSUB with no block */
sv_setsv((SV*)cv, &PL_sv_no); /* prototype it as "()" */
}
The above patch also fixes a core dump issue when used with threads
module. Please apply the patch to the offcial Net-ext source.
Thanks. Rajesh