From b6f0aa4394a5e545cc706a8b008b8b73121cd90b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 21 Sep 2005 06:38:33 +0000 Subject: [PATCH] return an error string for the missing URL case --- lib/transfer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/transfer.c b/lib/transfer.c index d08fa594d..996d133c9 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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