]> granicus.if.org Git - curl/commitdiff
Dan Shearer's fix from bug report #618892, which makes 'curl -O' output
authorDaniel Stenberg <daniel@haxx.se>
Sat, 29 Mar 2003 11:03:30 +0000 (11:03 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 29 Mar 2003 11:03:30 +0000 (11:03 +0000)
an error message about a missing URL.

src/main.c

index e5e6d540a26a8efbb83a0b6c3e06ee458600c7cc..9ec8977d4c1eff1e4c1d2ba1133b8e59591a35de 100644 (file)
@@ -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;
   }