If we get an invalid start char, just ignore it and goto the next
2002-05-18 Not Zed <NotZed@Ximian.com> * camel-search-private.c (camel_utf8_getc): If we get an invalid start char, just ignore it and goto the next character. svn path=/trunk/; revision=16960
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2002-05-18 Not Zed <NotZed@Ximian.com>
|
||||
|
||||
* camel-search-private.c (camel_utf8_getc): If we get an invalid
|
||||
start char, just ignore it and goto the next character.
|
||||
|
||||
2002-05-16 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* camel-filter-search.c (get_label): New e-sexp callback function
|
||||
|
||||
@ -499,9 +499,9 @@ camel_utf8_getc(const unsigned char **ptr)
|
||||
{
|
||||
register unsigned char *p = (unsigned char *)*ptr;
|
||||
register unsigned char c, r;
|
||||
register guint32 v=0, /* this is only required because the stupid @@@%#%# compiler thinks it can be used uninitialised */
|
||||
m;
|
||||
register guint32 v, m;
|
||||
|
||||
again:
|
||||
r = *p++;
|
||||
loop:
|
||||
if (r < 0x80) {
|
||||
@ -524,6 +524,8 @@ loop:
|
||||
*ptr = p;
|
||||
|
||||
v &= ~m;
|
||||
} else {
|
||||
goto again;
|
||||
}
|
||||
|
||||
return v;
|
||||
|
||||
Reference in New Issue
Block a user