From 82bc76b2439ce22c3e8e0bdb79b3f15ae0e04b35 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Sat, 29 Mar 2003 11:03:30 +0000
Subject: [PATCH] Dan Shearer's fix from bug report #618892, which makes 'curl
 -O' output an error message about a missing URL.

---
 src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c
index e5e6d540a2..9ec8977d4c 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;
   }
-- 
GitLab