aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/reader.c b/src/reader.c
index 31392747..bf0eea11 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -288,6 +288,11 @@ static void
pop_string(SerdReader parser, Ref ref)
{
if (ref) {
+ if (ref == parser->rdf_nil.value
+ || ref == parser->rdf_first.value
+ || ref == parser->rdf_rest.value) {
+ return;
+ }
#ifdef STACK_DEBUG
if (!stack_is_top_string(parser, ref)) {
fprintf(stderr, "attempt to pop non-top string %s\n", deref(parser, ref)->buf);