Not 100% sure this is right, but it fixes the bug without breaking
any tests so hopefully it's at least better than it was before.
p4raw-id: //depot/perl@33341
@ISA = qw(Exporter DynaLoader);
@EXPORT = qw( filter_add filter_del filter_read filter_read_exact) ;
-$VERSION = "1.07" ;
+$VERSION = "1.07_01" ;
sub filter_read_exact($)
{
SAVESPTR(DEFSV) ; /* save $_ */
/* make $_ use our buffer */
- DEFSV = sv_2mortal(newSVpv("", 0)) ;
+ DEFSV = newSVpv("", 0) ;
PUSHMARK(sp) ;
if (SvCUR(DEFSV))
sv_setpvn(my_sv, SvPVX(DEFSV), SvCUR(DEFSV)) ;
+ sv_2mortal(DEFSV);
+
PUTBACK ;
FREETMPS ;
LEAVE ;