strparse: split a multi-line assert into many separate ones

This way we can better tell exactly which condition that triggers. Like
in fuzzer logs.

Closes #21599
This commit is contained in:
Daniel Stenberg 2026-05-13 23:28:43 +02:00
parent db4a6f286b
commit 81f950dd90
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -49,9 +49,14 @@ void curlx_str_trim(struct Curl_str *out, size_t len)
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)) {