mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
Fix from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>. Revered
condition meant fast-path in strchr_m was not being used. Doh ! Jeremy.
This commit is contained in:
@ -1186,7 +1186,7 @@ char *strchr_m(const char *s, char c)
|
|||||||
supported multi-byte character sets are ascii-compatible
|
supported multi-byte character sets are ascii-compatible
|
||||||
(ie. they match for the first 128 chars) */
|
(ie. they match for the first 128 chars) */
|
||||||
|
|
||||||
while (*s && (((unsigned char)s[0]) & 0x80)) {
|
while (*s && !(((unsigned char)s[0]) & 0x80)) {
|
||||||
if (*s == c)
|
if (*s == c)
|
||||||
return s;
|
return s;
|
||||||
s++;
|
s++;
|
||||||
|
Reference in New Issue
Block a user