return an error string for the missing URL case

This commit is contained in:
Daniel Stenberg 2005-09-21 06:38:33 +00:00
parent 774dab58f6
commit b6f0aa4394
1 changed files with 3 additions and 1 deletions

View File

@ -1622,9 +1622,11 @@ Transfer(struct connectdata *conn)
CURLcode Curl_pretransfer(struct SessionHandle *data)
{
CURLcode res;
if(!data->change.url)
if(!data->change.url) {
/* we can't do anything wihout URL */
failf(data, "No URL set!\n");
return CURLE_URL_MALFORMAT;
}
/* Init the SSL session ID cache here. We do it here since we want to do it
after the *_setopt() calls (that could change the size of the cache) but