summaryrefslogtreecommitdiff
path: root/libbio/bgetc.c
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2013-06-06 20:59:23 +0000
committerCharles Forsyth <charles.forsyth@gmail.com>2013-06-06 20:59:23 +0000
commit72335078034e3cd7edcb1739556b405a3e1e9bf8 (patch)
tree9e1baa8ea80bfab1885cfcf224a62040a417fa74 /libbio/bgetc.c
parent3a0400887de9df81e4d4fb3bc3dec52af2d49f80 (diff)
sync with plan 9
Diffstat (limited to 'libbio/bgetc.c')
-rw-r--r--libbio/bgetc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbio/bgetc.c b/libbio/bgetc.c
index 4c8ae90c..741b692f 100644
--- a/libbio/bgetc.c
+++ b/libbio/bgetc.c
@@ -26,6 +26,7 @@ loop:
i = read(bp->fid, bp->bbuf, bp->bsize);
bp->gbuf = bp->bbuf;
if(i <= 0) {
+ bp->state = Bracteof;
if(i < 0)
bp->state = Binactive;
return Beof;