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:
Daniel Stenberg 2003-08-14 11:53:53 +00:00
parent 46690d5e1c
commit fe60fc4730

View File

@ -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