On 5/21/20 11:40 AM, Bruno Haible wrote:
- if (memmem (haystack, 3, NULL, 0) != haystack) + if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
This has undefined behavior in general, no? So some future sanitizer may complain about it, for good reason.
How about using '""' instead of '(const char *) 1'?