aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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