projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix spuriously slow check in twoway strstr/memmem cores
[musl]
/
src
/
string
/
memmem.c
diff --git
a/src/string/memmem.c
b/src/string/memmem.c
index
54a66e4
..
ce3cd19
100644
(file)
--- a/
src/string/memmem.c
+++ b/
src/string/memmem.c
@@
-100,7
+100,7
@@
static char *twoway_memmem(const unsigned char *h, const unsigned char *z, const
if (BITOP(byteset, h[l-1], &)) {
k = l-shift[h[l-1]];
if (k) {
- if (mem
0 && mem
&& k < p) k = l-p;
+ if (mem && k < p) k = l-p;
h += k;
mem = 0;
continue;