mirror of https://github.com/openssl/openssl
fix Coverity 1494649: dead code
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17230)
This commit is contained in:
parent
83b424c3f6
commit
f0fc3c10d0
|
@ -1036,14 +1036,14 @@ int opt_check_rest_arg(const char *expected)
|
||||||
return 1;
|
return 1;
|
||||||
opt_printf_stderr("%s: Missing argument: %s\n", prog, expected);
|
opt_printf_stderr("%s: Missing argument: %s\n", prog, expected);
|
||||||
return 0;
|
return 0;
|
||||||
} else if (expected != NULL) {
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
if (expected != NULL)
|
||||||
|
return 1;
|
||||||
if (opt_unknown() == NULL)
|
if (opt_unknown() == NULL)
|
||||||
opt_printf_stderr("%s: Extra option: \"%s\"\n", prog, opt);
|
opt_printf_stderr("%s: Extra option: \"%s\"\n", prog, opt);
|
||||||
else
|
else
|
||||||
opt_printf_stderr("%s: Extra (unknown) options: \"%s\" \"%s\"\n",
|
opt_printf_stderr("%s: Extra (unknown) options: \"%s\" \"%s\"\n",
|
||||||
prog, opt_unknown(), opt != NULL ? opt : "");
|
prog, opt_unknown(), opt);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue