summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2021-11-21 21:40:24 -0800
committerDave Beckett <dave@dajobe.org>2021-11-21 21:40:24 -0800
commit05e5d9d26c84f64c3b7ae89a53eb8da557b7e167 (patch)
treedbf1b5bf26a19d623dcd5338ad4cb8fe20f5ddda
parent18b9fa103d83d5c2bd1b087b948ed4b7d3692edf (diff)
downloadraptor-05e5d9d26c84f64c3b7ae89a53eb8da557b7e167.tar.gz
Fix check for ".." string
(rdfa_resolve_uri): Fix check for ".." that never matched; if was always false [coverity CID 343354]
-rw-r--r--librdfa/curie.c2
1 files changed, 1 insertions, 1 deletions
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,