argv was set but unused

Also gives an error message when you gave it a parameter it didn't expect.

Reviewed-by: Rich Salz <rsalz@openssl.org>

MR: #2009
This commit is contained in:
Kurt Roeckx
2016-02-14 20:45:02 +01:00
parent 5ee719da04
commit 0335851754
23 changed files with 55 additions and 23 deletions

View File

@@ -220,7 +220,9 @@ int ecparam_main(int argc, char **argv)
}
}
argc = opt_num_rest();
argv = opt_rest();
if (argc != 0)
goto opthelp;
private = genkey ? 1 : 0;
in = bio_open_default(infile, 'r', informat);