aboutsummaryrefslogtreecommitdiffstats
path: root/src/byte_source.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-06-30 10:23:58 -0400
committerDavid Robillard <d@drobilla.net>2017-06-30 10:29:33 -0400
commit4024103b305911819df5b86a8f73b3e4d690e6b7 (patch)
tree618d6fbeb09033a3e36d41a56a8f62fb3dec5661 /src/byte_source.c
parent902d171c5e79561a534c3cbb9cc547cd1fadeab7 (diff)
downloadserd-4024103b305911819df5b86a8f73b3e4d690e6b7.tar.gz
serd-4024103b305911819df5b86a8f73b3e4d690e6b7.tar.bz2
serd-4024103b305911819df5b86a8f73b3e4d690e6b7.zip
Fix spurious error message when parsing empty files
Diffstat (limited to 'src/byte_source.c')
-rw-r--r--src/byte_source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/byte_source.c b/src/byte_source.c
index af73fbfe..588d258e 100644
--- a/src/byte_source.c
+++ b/src/byte_source.c
@@ -20,7 +20,7 @@ static inline SerdStatus
serd_byte_source_page(SerdByteSource* source)
{
source->read_head = 0;
- size_t n_read = source->read_func(
+ const size_t n_read = source->read_func(
source->file_buf, 1, source->page_size, source->stream);
if (n_read == 0) {
source->file_buf[0] = '\0';