diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-03-29 11:03:30 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-03-29 11:03:30 +0000 |
commit | 82bc76b2439ce22c3e8e0bdb79b3f15ae0e04b35 (patch) | |
tree | 2a40a9c483043be72e30aa5fc563a24b7c1ada70 /src | |
parent | 18b9b04907b3e4e27d297309180e0b357d62b202 (diff) |
Dan Shearer's fix from bug report #618892, which makes 'curl -O' output
an error message about a missing URL.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |