This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlio.c: Coverity finding: finding false (Coverity not able to follow vtable logic...
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 8 Apr 2006 19:11:36 +0000 (22:11 +0300)
committerNicholas Clark <nick@ccl4.org>
Sat, 8 Apr 2006 22:37:29 +0000 (22:37 +0000)
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)) {