mirror of
https://github.com/curl/curl.git
synced 2026-06-02 02:44:35 +03:00
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.
This commit is contained in:
parent
46690d5e1c
commit
fe60fc4730
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue