summaryrefslogtreecommitdiff
path: root/xmlstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmlstring.c')
-rw-r--r--xmlstring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlstring.c b/xmlstring.c
index db94432..929f422 100644
--- a/xmlstring.c
+++ b/xmlstring.c
@@ -884,7 +884,7 @@ xmlUTF8Strpos(const xmlChar *utf, int pos) {
xmlChar ch;
if (utf == NULL) return(NULL);
- if ( (pos < 0) || (pos >= xmlUTF8Strlen(utf)) )
+ if (pos < 0)
return(NULL);
while (pos--) {
if ((ch=*utf++) == 0) return(NULL);