diff options
Diffstat (limited to 'src/byte_source.c')
-rw-r--r-- | src/byte_source.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/byte_source.c b/src/byte_source.c index b56e0102..54b0ad7e 100644 --- a/src/byte_source.c +++ b/src/byte_source.c @@ -19,7 +19,7 @@ serd_byte_source_page(SerdByteSource* const source) if (n_read == 0) { source->file_buf[0] = '\0'; source->eof = true; - return (source->error_func(source->stream) ? SERD_ERR_UNKNOWN + return (source->error_func(source->stream) ? SERD_BAD_STREAM : SERD_FAILURE); } |