mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
fixed error reported on the list caused by my last change
* xmlstring.c: fixed error reported on the list caused by my last change
This commit is contained in:
@@ -773,7 +773,7 @@ xmlCheckUTF8(const unsigned char *utf)
|
||||
* 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx valid 4-byte
|
||||
*/
|
||||
for (ix = 0; (c = utf[ix]);) { /* string is 0-terminated */
|
||||
if (c & 0x80) { /* 1-byte code, starts with 10 */
|
||||
if ((c & 0x80) == 0x00) { /* 1-byte code, starts with 10 */
|
||||
ix++;
|
||||
} else if ((c & 0xe0) == 0xc0) {/* 2-byte code, starts with 110 */
|
||||
if ((utf[ix+1] & 0xc0 ) != 0x80)
|
||||
|
Reference in New Issue
Block a user