perlio.c: Coverity finding: finding false (Coverity not able to follow vtable logic...
Jarkko Hietaniemi [Sat, 8 Apr 2006 19:11:36 +0000 (22:11 +0300)]
Message-Id: <20060408161136.CEAC86D08C@ugli.hut.fi>
Date: Sat,  8 Apr 2006 19:11:36 +0300 (EEST)

p4raw-id: //depot/perl@27745

perlio.c

index e796607..47fbd92 100644 (file)
--- 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)) {