Coverity CID 1444950: Control flow issues

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8888)
This commit is contained in:
Pauli 2019-05-07 11:10:33 +10:00
parent 1f76076095
commit 0dc6bf3c39

View file

@ -42,8 +42,7 @@ int info_main(int argc, char **argv)
prog = opt_init(argc, argv, info_options); prog = opt_init(argc, argv, info_options);
while ((o = opt_next()) != OPT_EOF) { while ((o = opt_next()) != OPT_EOF) {
switch (o) { switch (o) {
case OPT_EOF: default:
case OPT_ERR:
opthelp: opthelp:
BIO_printf(bio_err, "%s: Use -help for summary.\n", prog); BIO_printf(bio_err, "%s: Use -help for summary.\n", prog);
goto end; goto end;