1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00: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:
Jeremy Allison
-
parent aa40a86cbe
commit f23c9d36b0

View File

@ -1186,7 +1186,7 @@ char *strchr_m(const char *s, char c)
supported multi-byte character sets are ascii-compatible
(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)
return s;
s++;