From: Daniel Stenberg Date: Sat, 29 Mar 2003 11:03:30 +0000 (+0000) Subject: Dan Shearer's fix from bug report #618892, which makes 'curl -O' output X-Git-Tag: curl-7_10_4~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82bc76b2439ce22c3e8e0bdb79b3f15ae0e04b35;p=curl Dan Shearer's fix from bug report #618892, which makes 'curl -O' output an error message about a missing URL. --- diff --git a/src/main.c b/src/main.c index e5e6d540a..9ec8977d4 100644 --- a/src/main.c +++ b/src/main.c @@ -2442,7 +2442,7 @@ operate(struct Configurable *config, int argc, char *argv[]) } } - if(!config->url_list) { + if(!config->url_list || !config->url_list->url) { helpf("no URL specified!\n"); return CURLE_FAILED_INIT; }