From 52d0ac81eee3462c6839c7374ffe57329f7702b7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 May 2018 00:48:31 +0200 Subject: Zero node padding before passing to reader sinks --- src/reader.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/reader.c') 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, -- cgit v1.2.1