From b7e22e9227a83b3c2f925b774f0794084ba526ff Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Oct 2022 22:07:43 -0400 Subject: Fix crash when trying to read chunks without starting --- test/test_reader_writer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c index 0ac589f1..52d78e29 100644 --- a/test/test_reader_writer.c +++ b/test/test_reader_writer.c @@ -290,6 +290,8 @@ test_reader(const char* path) assert(reader); assert(serd_reader_get_handle(reader) == rt); + assert(serd_reader_read_chunk(reader) == SERD_FAILURE); + SerdNode g = serd_node_from_string(SERD_URI, USTR("http://example.org/")); serd_reader_set_default_graph(reader, &g); serd_reader_add_blank_prefix(reader, USTR("tmp")); -- cgit v1.2.1