fixup add null check to please tools
This commit is contained in:
parent
9d31b7fc19
commit
93a2f11ff6
@ -249,6 +249,8 @@ static CURLUcode redirect_url(const char *base, const char *relurl,
|
|||||||
/* protsep points to the start of the hostname, after [scheme]:// */
|
/* protsep points to the start of the hostname, after [scheme]:// */
|
||||||
const char *protsep = base + strlen(u->scheme) + 3;
|
const char *protsep = base + strlen(u->scheme) + 3;
|
||||||
DEBUGASSERT(base && relurl && u); /* all set here */
|
DEBUGASSERT(base && relurl && u); /* all set here */
|
||||||
|
if(!base)
|
||||||
|
return CURLUE_MALFORMED_INPUT; /* should never happen */
|
||||||
|
|
||||||
/* handle different relative URL types */
|
/* handle different relative URL types */
|
||||||
switch(relurl[0]) {
|
switch(relurl[0]) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user