git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa40a86
)
Fix from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>. Revered
author
Jeremy Allison
<jra@samba.org>
Fri, 12 Sep 2003 21:41:18 +0000
(21:41 +0000)
committer
Jeremy Allison
<jra@samba.org>
Fri, 12 Sep 2003 21:41:18 +0000
(21:41 +0000)
condition meant fast-path in strchr_m was not being used. Doh !
Jeremy.
source/lib/util_str.c
patch
|
blob
|
history
diff --git
a/source/lib/util_str.c
b/source/lib/util_str.c
index 57131ad873bfece3e1f8135dc2049d6b724a5673..c065bfe9db619a47841ce36273ca62a4c06d71b8 100644
(file)
--- a/
source/lib/util_str.c
+++ b/
source/lib/util_str.c
@@
-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++;