aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/reader.c b/src/reader.c
index 057f1d7f..1c99b033 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -6,6 +6,7 @@
#include "byte_source.h"
#include "namespaces.h"
#include "node.h"
+#include "read_nquads.h"
#include "read_ntriples.h"
#include "stack.h"
#include "statement.h"
@@ -362,11 +363,12 @@ serd_reader_read_chunk(SerdReader* const reader)
if (peek_byte(reader) == 0) {
// Skip leading null byte, for reading from a null-delimited socket
- st = skip_byte(reader, 0);
+ serd_byte_source_advance(&reader->source);
+ return SERD_FAILURE;
}
return st ? st
- : (reader->syntax == SERD_NQUADS) ? read_nquads_statement(reader)
+ : (reader->syntax == SERD_NQUADS) ? read_nquads_line(reader)
: read_n3_statement(reader);
}