summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perlio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/perlio.c b/perlio.c
index e7966073ca..47fbd92321 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)) {