aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 15:18:32 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 15:18:32 +0100
commitcb231f47672d777998507e09e7f5f303f4dddf0b (patch)
tree15d49e618ae4d1d27918b3b411374f7020c4b347 /src
parent4e479c3679e79a72da50e9cfec4f4d7f039e3a04 (diff)
downloadserd-cb231f47672d777998507e09e7f5f303f4dddf0b.tar.gz
serd-cb231f47672d777998507e09e7f5f303f4dddf0b.tar.bz2
serd-cb231f47672d777998507e09e7f5f303f4dddf0b.zip
Fix bug parsing TriG graphs with several squashed trailing dots
Diffstat (limited to 'src')
-rw-r--r--src/n3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/n3.c b/src/n3.c
index 8832f746..5bd3052c 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1314,11 +1314,11 @@ read_directive(SerdReader* reader)
static bool
read_wrappedGraph(SerdReader* reader, ReadContext* ctx)
{
- bool ate_dot = false;
- char s_type = 0;
TRY_RET(eat_byte_check(reader, '{'));
read_ws_star(reader);
while (peek_byte(reader) != '}') {
+ bool ate_dot = false;
+ char s_type = 0;
ctx->subject = 0;
Ref subj = read_subject(reader, *ctx, &ctx->subject, &s_type);
if (!subj && ctx->subject) {