diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-14 11:53:53 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-14 11:53:53 +0000 |
commit | fe60fc473046335b836c4a2b57a5fb1bccb960f5 (patch) | |
tree | 623d03e184488e930b52abddd4294dab2bee7a23 /src | |
parent | 46690d5e1ca524d82ca9f0217eec6ce929829fee (diff) |
In case the output urlglob file name returned is NULL, then there was
badness in the string and we help our user by returning an error.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 888e9666e..826f6f0ce 100644 --- a/src/main.c +++ b/src/main.c @@ -2763,6 +2763,12 @@ operate(struct Configurable *config, int argc, char *argv[]) char *storefile = outfile; outfile = glob_match_url(storefile, urls); free(storefile); + if(!outfile) { + /* bad globbing */ + helpf("bad output glob!\n"); + return CURLE_FAILED_INIT; + } + } /* Create the directory hierarchy, if not pre-existant to a multiple |