mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05: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
@ -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…
Reference in New Issue
Block a user