This way we can better tell exactly which condition that triggers. Like
in fuzzer logs.
Closes #21599
int curlx_str_until(const char **linep, struct Curl_str *out,
const size_t max, char delim)
{
- const char *s = *linep;
+ const char *s;
size_t len = 0;
- DEBUGASSERT(linep && *linep && out && max && delim);
+ DEBUGASSERT(linep);
+ DEBUGASSERT(*linep);
+ DEBUGASSERT(out);
+ DEBUGASSERT(max);
+ DEBUGASSERT(delim);
+ s = *linep;
curlx_str_init(out);
while(*s && (*s != delim)) {