From 2402d960c54981abb34a79982ecd61a00f798901 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Jun 2018 22:23:28 +0200 Subject: Add cursor to statement This allows the file and position of statements to be used in sinks, for example for more helpful error reporting outside the parser. --- src/sink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sink.c') diff --git a/src/sink.c b/src/sink.c index 1c5c500f..fffa386e 100644 --- a/src/sink.c +++ b/src/sink.c @@ -48,7 +48,8 @@ serd_sink_write(const SerdSink* sink, const SerdNode* object, const SerdNode* graph) { - const SerdStatement statement = { { subject, predicate, object, graph } }; + const SerdStatement statement = { { subject, predicate, object, graph }, + NULL }; return sink->statement(sink->handle, flags, &statement); } -- cgit v1.2.1