diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 7438b0e0e..cadc9cf44 100644 --- a/src/main.c +++ b/src/main.c @@ -961,12 +961,16 @@ int main(int argc, char *argv[]) return URG_FAILED_INIT; } #if 0 - fprintf(stderr, "URL: %s PROXY: %s\n", url, config.proxy?config.proxy:"none"); + fprintf(stderr, "URL: %s PROXY: %s\n", url, config.proxy?config.proxy:"none"); #endif #ifdef GLOBURL - urlnum = glob_url(&urls, url); /* expand '{...}' and '[...]' expressions and return - total number of URLs in pattern set */ + /* expand '{...}' and '[...]' expressions and return total number of URLs + in pattern set */ + res = glob_url(&urls, url, &urlnum); + if(res != URG_OK) + return res; + outfiles = config.outfile; /* save outfile pattern befor expansion */ if (!outfiles && !config.remotefile && urlnum > 1) { #ifdef CURL_SEPARATORS |