aboutsummaryrefslogtreecommitdiffstats
path: root/src/read_nquads.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/read_nquads.c')
-rw-r--r--src/read_nquads.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/read_nquads.c b/src/read_nquads.c
index 6f0120d1..44c29d0a 100644
--- a/src/read_nquads.c
+++ b/src/read_nquads.c
@@ -4,7 +4,6 @@
#include "read_nquads.h"
#include "caret.h"
-#include "node.h"
#include "read_ntriples.h"
#include "reader.h"
#include "stack.h"
@@ -44,7 +43,7 @@ read_nquads_statement(SerdReader* const reader)
}
// Preserve the caret for error reporting and read object
- SerdCaret orig_caret = reader->source->caret;
+ SerdCaret orig_caret = reader->source.caret;
if ((st = read_nt_object(reader, &ctx.object, &ate_dot)) ||
(st = skip_horizontal_whitespace(reader))) {
return st;
@@ -52,7 +51,7 @@ read_nquads_statement(SerdReader* const reader)
if (!ate_dot) {
if (peek_byte(reader) == '.') {
- eat_byte(reader);
+ skip_byte(reader, '.');
} else {
TRY(st, read_graphLabel(reader, &ctx.graph));
skip_horizontal_whitespace(reader);
@@ -60,7 +59,6 @@ read_nquads_statement(SerdReader* const reader)
}
}
- serd_node_zero_pad(ctx.object);
const SerdStatement statement = {
{ctx.subject, ctx.predicate, ctx.object, ctx.graph}, &orig_caret};