aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-14 11:53:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-14 11:53:53 +0000
commitfe60fc473046335b836c4a2b57a5fb1bccb960f5 (patch)
tree623d03e184488e930b52abddd4294dab2bee7a23 /src
parent46690d5e1ca524d82ca9f0217eec6ce929829fee (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.c6
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