expand the assert

This commit is contained in:
Daniel Stenberg 2025-02-26 15:15:43 +01:00
parent e398c036ec
commit 9d31b7fc19
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -248,7 +248,7 @@ static CURLUcode redirect_url(const char *base, const char *relurl,
/* protsep points to the start of the hostname, after [scheme]:// */
const char *protsep = base + strlen(u->scheme) + 3;
DEBUGASSERT(base); /* it is set here */
DEBUGASSERT(base && relurl && u); /* all set here */
/* handle different relative URL types */
switch(relurl[0]) {