diff options
author | Mike Hommey <mh@glandium.org> | 2005-02-05 12:06:19 +0000 |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2005-02-05 12:06:19 +0000 |
commit | a7457388701e6ccba9091ba3ec09505dc903b758 (patch) | |
tree | 80a7d0fba3968fee73cc71a62ffe1af039396f29 /xmlstring.c | |
parent | f51dd67f3a3f472af0620391eb588eeca4533689 (diff) | |
download | libxml2-a7457388701e6ccba9091ba3ec09505dc903b758.tar.gz |
Load /tmp/tmp.5kkLmZ/libxml2-2.6.17 intoupstream/2.6.17
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'xmlstring.c')
-rw-r--r-- | xmlstring.c | 2 |
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); |