diff options
author | David Robillard <d@drobilla.net> | 2019-03-17 15:18:32 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-17 15:18:32 +0100 |
commit | cb231f47672d777998507e09e7f5f303f4dddf0b (patch) | |
tree | 15d49e618ae4d1d27918b3b411374f7020c4b347 /src | |
parent | 4e479c3679e79a72da50e9cfec4f4d7f039e3a04 (diff) | |
download | serd-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |