From 24c22074662711dbb6bac2eadca557f98f356a9a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Jun 2024 16:27:49 -0400 Subject: Gracefully handle errors while writing the end of anonymous nodes --- NEWS | 3 ++- src/n3.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index f051f9ee..fe1cbf83 100644 --- a/NEWS +++ b/NEWS @@ -3,10 +3,11 @@ serd (0.32.3) unstable; urgency=medium * Clean up enum declarations * Fix library current_version on MacOS * Fix parsing NQuads lines with no space before the final dot + * Gracefully handle errors while writing the end of anonymous nodes * Support reading lone lists in lax mode * Treat out of range unicode characters as errors - -- David Robillard Sun, 09 Jun 2024 22:15:14 +0000 + -- David Robillard Sun, 23 Jun 2024 19:02:38 +0000 serd (0.32.2) stable; urgency=medium diff --git a/src/n3.c b/src/n3.c index b1eb0d2c..6cb8522e 100644 --- a/src/n3.c +++ b/src/n3.c @@ -1115,7 +1115,7 @@ read_anon(SerdReader* const reader, read_ws_star(reader); if (reader->end_sink) { - reader->end_sink(reader->handle, deref(reader, *dest)); + st = reader->end_sink(reader->handle, deref(reader, *dest)); } *ctx.flags = old_flags; -- cgit v1.2.1