Commit fe60fc47 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent 46690d5e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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