From e398c036ec9bc68848b84bc4ad2ef7d10ea6812b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 26 Feb 2025 15:14:01 +0100 Subject: [PATCH] fixup try two asserts and see if tidy gets happier --- lib/urlapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/urlapi.c b/lib/urlapi.c index 79ad648a42..6c50aef99e 100644 --- a/lib/urlapi.c +++ b/lib/urlapi.c @@ -248,6 +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 */ /* handle different relative URL types */ switch(relurl[0]) { @@ -1770,7 +1771,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what, || curl_url_get(u, CURLUPART_URL, &oldurl, flags)) { return parseurl_and_replace(part, u, flags); } - + DEBUGASSERT(oldurl); /* it is set here */ /* apply the relative part to create a new URL */ uc = redirect_url(oldurl, part, u, flags); free(oldurl);