OSDN Git Service

fix spuriously slow check in twoway strstr/memmem cores
authorRich Felker <dalias@aerifal.cx>
Fri, 2 Nov 2018 16:01:37 +0000 (12:01 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 2 Nov 2018 16:02:09 +0000 (12:02 -0400)
commit8f5a820d147da36bcdbddd201b35d293699dacd8
treed2f96ac9eb116cd29e55102bcabdbc3a5c5a477b
parent1b52863e244ecee5b5935b6d36bb9e6efe84c035
fix spuriously slow check in twoway strstr/memmem cores

mem0 && mem && ... is redundant since mem can only be nonzero when
mem0 is nonzero.
src/string/memmem.c
src/string/strstr.c