Skip to content

Commit 05e5d9d

Browse files
committedNov 22, 2021
Fix check for ".." string
(rdfa_resolve_uri): Fix check for ".." that never matched; if was always false [coverity CID 343354]
1 parent 18b9fa1 commit 05e5d9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎librdfa/curie.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ char* rdfa_resolve_uri(rdfacontext* context, const char* uri)
308308
sptr++;
309309

310310
}
311-
else if(sptr[0] == '.' && sptr[1] == '.' && sptr[1] == '\0')
311+
else if(sptr[0] == '.' && sptr[1] == '.' && sptr[2] == '\0')
312312
{
313313
/* D. if the input buffer consists only of "..", then remove
314314
* that from the input buffer; otherwise,

0 commit comments

Comments
 (0)
Please sign in to comment.