aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-10-03 16:13:48 +0200
committerDavid Robillard <d@drobilla.net>2018-10-03 16:13:48 +0200
commita71575babfe238bb8e750f26d2eae38580321ee6 (patch)
tree0ac82ce2db4b283bbe856b3a02724fc2d6715f1b /src/n3.c
parentc58565866d52a7549c2abebe1f78ca547769f469 (diff)
downloadserd-a71575babfe238bb8e750f26d2eae38580321ee6.tar.gz
serd-a71575babfe238bb8e750f26d2eae38580321ee6.tar.bz2
serd-a71575babfe238bb8e750f26d2eae38580321ee6.zip
Fix colliding blank nodes when parsing TriG
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/n3.c b/src/n3.c
index edf773c7..d98a516c 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -878,7 +878,7 @@ read_BLANK_NODE_LABEL(SerdReader* reader, bool* ate_dot)
*ate_dot = true;
}
- if (reader->syntax == SERD_TURTLE) {
+ if (fancy_syntax(reader)) {
if (is_digit(n->buf[reader->bprefix_len + 1])) {
if ((n->buf[reader->bprefix_len]) == 'b') {
((char*)n->buf)[reader->bprefix_len] = 'B'; // Prevent clash