aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-23 16:27:49 -0400
committerDavid Robillard <d@drobilla.net>2024-06-23 16:36:03 -0400
commit24c22074662711dbb6bac2eadca557f98f356a9a (patch)
tree40b0f6639adc19078ca3f9a565caede8e14be88d
parentb6c9214d2077c87fa19cc5431732f1b496797bed (diff)
downloadserd-24c22074662711dbb6bac2eadca557f98f356a9a.tar.gz
serd-24c22074662711dbb6bac2eadca557f98f356a9a.tar.bz2
serd-24c22074662711dbb6bac2eadca557f98f356a9a.zip
Gracefully handle errors while writing the end of anonymous nodes
-rw-r--r--NEWS3
-rw-r--r--src/n3.c2
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 <d@drobilla.net> Sun, 09 Jun 2024 22:15:14 +0000
+ -- David Robillard <d@drobilla.net> 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;