From: Jarkko Hietaniemi Date: Sat, 8 Apr 2006 19:11:36 +0000 (+0300) Subject: perlio.c: Coverity finding: finding false (Coverity not able to follow vtable logic... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ec6fa4f0cdba2fa84d6f1ede5d2c07f929d400f6;p=p5sagit%2Fp5-mst-13.2.git perlio.c: Coverity finding: finding false (Coverity not able to follow vtable logic) but adding an assert Message-Id: <20060408161136.CEAC86D08C@ugli.hut.fi> Date: Sat, 8 Apr 2006 19:11:36 +0300 (EEST) p4raw-id: //depot/perl@27745 --- diff --git a/perlio.c b/perlio.c index e796607..47fbd92 100644 --- a/perlio.c +++ b/perlio.c @@ -3709,6 +3709,8 @@ PerlIOBuf_fill(pTHX_ PerlIO *f) if (!b->buf) PerlIO_get_base(f); /* allocate via vtable */ + assert(b->buf); + b->ptr = b->end = b->buf; if (!PerlIOValid(n)) {