diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2016-02-14 22:45:02 +0300 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2016-02-20 16:53:53 +0300 |
commit | 033585175485077bf7f5bbb352fd4f162d0c235f (patch) | |
tree | 4280e222f708758135ce158410099f7952cef916 /apps/asn1pars.c | |
parent | 5ee719da047ab1de41882568b1ebdb745ce00aed (diff) |
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
Diffstat (limited to 'apps/asn1pars.c')
-rw-r--r-- | apps/asn1pars.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/asn1pars.c b/apps/asn1pars.c index f7fa8f3531..a6cc6397fa 100644 --- a/apps/asn1pars.c +++ b/apps/asn1pars.c @@ -184,7 +184,8 @@ int asn1parse_main(int argc, char **argv) } } argc = opt_num_rest(); - argv = opt_rest(); + if (argc != 0) + goto opthelp; if (oidfile != NULL) { in = bio_open_default(oidfile, 'r', FORMAT_TEXT); |