Commit 9d8b22d3 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

check the correct variable to want about --stderr failures properly

CID 18 by the coverity.com scan
parent 5796c7b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1769,7 +1769,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
      case 'v': /* --stderr */
        if(strcmp(nextarg, "-")) {
          FILE *newfile = fopen(nextarg, "wt");
          if(!config->errors)
          if(!newfile)
            warnf(config, "Failed to open %s!\n", nextarg);
          else {
            config->errors = newfile;