From: Nicholas Clark Date: Wed, 21 Oct 2009 11:41:21 +0000 (+0100) Subject: S_utf16_textfilter() was failing honour error returns from FILTER_READ() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=295e8c06d82ac75b111246bf21d51c7f30b6aa10;p=p5sagit%2Fp5-mst-13.2.git S_utf16_textfilter() was failing honour error returns from FILTER_READ() --- diff --git a/toke.c b/toke.c index 4031044..7ad492f 100644 --- a/toke.c +++ b/toke.c @@ -12789,7 +12789,7 @@ S_utf16_textfilter(pTHX_ int idx, SV *sv, int maxlen) reverse ? "rev" : "", FPTR2DPTR(void *, S_utf16_textfilter), idx, maxlen, (int) count)); - if (count) { + if (count > 0) { U8* tmps; I32 newlen; Newx(tmps, SvCUR(sv) * 3 / 2 + 1, U8);