aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-13 00:48:31 +0200
committerDavid Robillard <d@drobilla.net>2018-05-27 21:10:21 +0200
commit52d0ac81eee3462c6839c7374ffe57329f7702b7 (patch)
treee40ed9149fb64122f8e4bc349639762baed11c3f /src/reader.c
parent48a9091b17435512f85d9ff202a5a7ea46c6af2a (diff)
downloadserd-52d0ac81eee3462c6839c7374ffe57329f7702b7.tar.gz
serd-52d0ac81eee3462c6839c7374ffe57329f7702b7.tar.bz2
serd-52d0ac81eee3462c6839c7374ffe57329f7702b7.zip
Zero node padding before passing to reader sinks
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/reader.c b/src/reader.c
index cf806259..4c448de6 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -115,6 +115,11 @@ emit_statement(SerdReader* reader, ReadContext ctx, SerdNode* o)
if (!graph && reader->default_graph) {
graph = reader->default_graph;
}
+
+ /* Zero the pad of the object node on the top of the stack. Lower nodes
+ (subject and predicate) were already zeroed by subsequent pushes. */
+ serd_node_zero_pad(o);
+
bool ret = !reader->sink->statement ||
!reader->sink->statement(
reader->sink->handle, *ctx.flags, graph,