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-12-31 11:37:47 -0500
commit299e386243004582a323507a5e17482b28d31b69 (patch)
treed273f9a13b751be1b5a212bcbfe91107fe269db5 /src/reader.c
parent3a62732bd03d1d0ba9daef1667afafa213828bf4 (diff)
downloadserd-299e386243004582a323507a5e17482b28d31b69.tar.gz
serd-299e386243004582a323507a5e17482b28d31b69.tar.bz2
serd-299e386243004582a323507a5e17482b28d31b69.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 e6629305..5d8d1dbd 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -118,6 +118,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,