diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/reader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/reader.c b/src/reader.c index 146ec4a9..3ef474ef 100644 --- a/src/reader.c +++ b/src/reader.c @@ -240,6 +240,7 @@ serd_reader_start_stream(SerdReader* reader, const SerdNode* name, size_t page_size) { + serd_reader_finish(reader); return serd_byte_source_open_source( &reader->source, read_func, error_func, NULL, stream, name, page_size); } @@ -247,6 +248,8 @@ serd_reader_start_stream(SerdReader* reader, SerdStatus serd_reader_start_file(SerdReader* reader, const char* uri, bool bulk) { + serd_reader_finish(reader); + char* const path = serd_file_uri_parse(uri, NULL); if (!path) { return SERD_ERR_BAD_ARG; @@ -276,6 +279,7 @@ serd_reader_start_string(SerdReader* reader, const char* utf8, const SerdNode* name) { + serd_reader_finish(reader); return serd_byte_source_open_string(&reader->source, utf8, name); } |