From 05e5d9d26c84f64c3b7ae89a53eb8da557b7e167 Mon Sep 17 00:00:00 2001 From: Dave Beckett Date: Sun, 21 Nov 2021 21:40:24 -0800 Subject: Fix check for ".." string (rdfa_resolve_uri): Fix check for ".." that never matched; if was always false [coverity CID 343354] --- librdfa/curie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librdfa/curie.c b/librdfa/curie.c index 704f6b5a..98ee7e0a 100644 --- a/librdfa/curie.c +++ b/librdfa/curie.c @@ -308,7 +308,7 @@ char* rdfa_resolve_uri(rdfacontext* context, const char* uri) sptr++; } - else if(sptr[0] == '.' && sptr[1] == '.' && sptr[1] == '\0') + else if(sptr[0] == '.' && sptr[1] == '.' && sptr[2] == '\0') { /* D. if the input buffer consists only of "..", then remove * that from the input buffer; otherwise, -- cgit v1.2.1