From a71575babfe238bb8e750f26d2eae38580321ee6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Oct 2018 16:13:48 +0200 Subject: Fix colliding blank nodes when parsing TriG --- NEWS | 3 ++- src/n3.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 90ae965f..add20be9 100644 --- a/NEWS +++ b/NEWS @@ -2,8 +2,9 @@ serd (0.30.1) unstable; * Fix GCC 4 build * Fix resolving some URIs against base URIs with no trailing slash + * Fix colliding blank nodes when parsing TriG - -- David Robillard Mon, 30 Jul 2018 19:28:32 +0200 + -- David Robillard Wed, 03 Oct 2018 15:50:38 +0200 serd (0.30.0) stable; 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 -- cgit v1.2.1