diff options
Diffstat (limited to 'src/byte_source.h')
-rw-r--r-- | src/byte_source.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/byte_source.h b/src/byte_source.h index 6da9df5d..198c92a8 100644 --- a/src/byte_source.h +++ b/src/byte_source.h @@ -88,9 +88,9 @@ serd_byte_source_advance(SerdByteSource* source) const bool was_eof = source->eof; if (source->from_stream) { - source->eof = false; if (source->page_size > 1) { if (++source->read_head == source->page_size) { + source->eof = false; st = serd_byte_source_page(source); } else if (source->read_head == source->buf_size) { source->eof = true; |